Skip to content

Commit

Permalink
Remove production deployment of pre-production resources
Browse files Browse the repository at this point in the history
  • Loading branch information
shanejearley committed Jan 11, 2023
1 parent ea7e3e5 commit ff831e9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions infrastructure/cdk/bin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ if (!process.env.PROJECT || !process.env.STAGE) {
const app = new cdk.App()
const dnsStack = new DnsStack(app, `${project}DnsStack${stage}`, { env: defaultEnv, project, stage })
const { domain, dnsRecords, hostedZone } = dnsStack
new EtlStack(app, `${project}EtlStack${stage}`, { env: defaultEnv, project, stage })
new AuthStack(app, `${project}AuthStack${stage}`, { env: defaultEnv, project, stage, domain, dnsRecords, hostedZone })

if (process.env.STAGE !== 'prod') {
/** Deploy pre-production resources */
new EtlStack(app, `${project}EtlStack${stage}`, { env: defaultEnv, project, stage })
new AuthStack(app, `${project}AuthStack${stage}`, { env: defaultEnv, project, stage, domain, dnsRecords, hostedZone })
}
/** Deploy production-ready resources */
new LandingStack(app, `${project}LandingStack${stage}`, { env: defaultEnv, project, stage, domain, dnsRecords, hostedZone })
}

0 comments on commit ff831e9

Please sign in to comment.