Skip to content

Commit

Permalink
feat(stacks.api): update staging stack to add defaultAddons, app addons
Browse files Browse the repository at this point in the history
Signed-off-by: Braden Mars <[email protected]>
  • Loading branch information
BradenM committed Aug 5, 2023
1 parent 451fe79 commit 9ce8dcc
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions packages/stacks/api/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,23 +132,22 @@ const devStack = buildStack(config.$env.development).addOns(
}),
)

const stagingStack = buildStack(config.$env.staging, false)
// const stagingStack = buildStack(config.$env.staging).addOns(
// buildKarpenter(),
// new RedisStackAddOn(),
// new CrisisCleanupAddOn({
// config: {
// ...config.$env.staging,
// api: {
// ...config.$env.staging.api,
// secrets: config.$env.staging.api.secrets ?? config.api.secrets,
// },
// },
// databaseResourceName: ResourceNames.DATABASE,
// databaseSecretResourceName: ResourceNames.DATABASE_SECRET,
// secretsProvider: stagingSecretsProvider,
// }),
// )
const stagingStack = buildStack(config.$env.staging).addOns(
buildKarpenter(),
new RedisStackAddOn(),
new CrisisCleanupAddOn({
config: {
...config.$env.staging,
api: {
...config.$env.staging.api,
secrets: config.$env.staging.api.secrets ?? config.api.secrets,
},
},
databaseResourceName: ResourceNames.DATABASE,
databaseSecretResourceName: ResourceNames.DATABASE_SECRET,
secretsProvider: stagingSecretsProvider,
}),
)

const pipeline = Pipeline.builder({
id: 'crisiscleanup',
Expand Down Expand Up @@ -176,7 +175,7 @@ const pipeline = Pipeline.builder({
environment: config.$env.staging.cdkEnvironment,
platformTeam: new blueprints.PlatformTeam({
name: 'platform',
users: config.$env.development.apiStack.eks.platformArns.map(
users: config.$env.staging.apiStack.eks.platformArns.map(
(arn) => new iam.ArnPrincipal(arn),
),
}),
Expand Down

0 comments on commit 9ce8dcc

Please sign in to comment.