Skip to content

Commit

Permalink
fixed undefined assumerole with monitoringEnv
Browse files Browse the repository at this point in the history
  • Loading branch information
iamprakkie committed Sep 29, 2023
1 parent e3b15fe commit a9c782d
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions lib/multi-acc-new-eks-mixed-observability-pattern/pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,33 +129,6 @@ export class PipelineMultiEnvMonitoring {
})
.enableCrossAccountKeys();

// ArgoCD configuration for monitoringEnv
// CHANGE ME FINALLY HERE AS WELL AS IN APP'S VALUES.YAML
// const grafanaOperatorArgoAddonConfig = createGOArgoAddonConfig(
// 'https://github.com/aws-observability/aws-observability-accelerator.git',
// 'artifacts/sample-apps/grafana-operator-app',
// 'main',
// 'private'
// );
const grafanaOperatorArgoAddonConfig = createGOArgoAddonConfig(
'https://github.com/iamprakkie/aws-observability-accelerator.git',
'artifacts/sample-apps/grafana-operator-app',
'artifacts',
'private'
);

const monStage: blueprints.StackStage = {
id: MON_ENV_ID,
stackBuilder: blueprintAmg
.name(MON_ENV_ID)
.clone(context.monitoringEnv.region, context.monitoringEnv.account)
.addOns(new blueprints.NestedStackAddOn({
builder: AmgIamSetupStack.builder(AmgIamSetupStackProps),
id: "amg-iam-nested-stack"
}))
.addOns(grafanaOperatorArgoAddonConfig)
};

// Argo configuration for prod1 and prod2
// CHANGE ME FINALLY HERE AS WELL AS IN APP'S VALUES.YAML
// const prodArgoAddonConfig = createArgoAddonConfig(
Expand Down Expand Up @@ -217,6 +190,33 @@ export class PipelineMultiEnvMonitoring {
stages: [ampStage, cwStage]
});

// ArgoCD configuration for monitoringEnv
// CHANGE ME FINALLY HERE AS WELL AS IN APP'S VALUES.YAML
// const grafanaOperatorArgoAddonConfig = createGOArgoAddonConfig(
// 'https://github.com/aws-observability/aws-observability-accelerator.git',
// 'artifacts/sample-apps/grafana-operator-app',
// 'main',
// 'private'
// );
const grafanaOperatorArgoAddonConfig = createGOArgoAddonConfig(
'https://github.com/iamprakkie/aws-observability-accelerator.git',
'artifacts/sample-apps/grafana-operator-app',
'artifacts',
'private'
);

const monStage: blueprints.StackStage = {
id: MON_ENV_ID,
stackBuilder: blueprintAmg
.name(MON_ENV_ID)
.clone(context.monitoringEnv.region, context.monitoringEnv.account)
.addOns(new blueprints.NestedStackAddOn({
builder: AmgIamSetupStack.builder(AmgIamSetupStackProps),
id: "amg-iam-nested-stack"
}))
.addOns(grafanaOperatorArgoAddonConfig)
};

// adding monitoring env setup as separate stage
pipeline.stage(monStage);

Expand Down

0 comments on commit a9c782d

Please sign in to comment.