Skip to content

Commit

Permalink
Released Stateless Pipeline to Production
Browse files Browse the repository at this point in the history
  • Loading branch information
victorskl committed Jul 5, 2024
1 parent 7ff32c0 commit 43924f1
Showing 1 changed file with 17 additions and 21 deletions.
38 changes: 17 additions & 21 deletions lib/pipeline/statelessPipelineStack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,27 +193,23 @@ export class StatelessPipelineStack extends cdk.Stack {
{ pre: [new pipelines.ManualApprovalStep('PromoteToGamma')] }
);

// Since the stateless stack might need to reference the stateful resources (e.g. db, sg), we might comment this out
// to prevent cdk from looking up for non existence resource. Currently the stateful resource is only deployed in
// dev

// /**
// * Deployment to Prod account
// */
// const prodConfig = getEnvironmentConfig(AppStage.PROD);
// if (!prodConfig) throw new Error(`No 'Prod' account configuration`);
// pipeline.addStage(
// new OrcaBusStatelessDeploymentStage(
// this,
// 'OrcaBusProd',
// prodConfig.stackProps.statelessConfig,
// {
// account: prodConfig.accountId,
// region: prodConfig.region,
// }
// ),
// { pre: [new pipelines.ManualApprovalStep('PromoteToProd')] }
// );
/**
* Deployment to Prod account
*/
const prodConfig = getEnvironmentConfig(AppStage.PROD);
if (!prodConfig) throw new Error(`No 'Prod' account configuration`);
pipeline.addStage(
new OrcaBusStatelessDeploymentStage(
this,
'OrcaBusProd',
prodConfig.stackProps.statelessConfig,
{
account: prodConfig.accountId,
region: prodConfig.region,
}
),
{ pre: [new pipelines.ManualApprovalStep('PromoteToProd')] }
);

// need to build pipeline so we could add notification at the pipeline construct
pipeline.buildPipeline();
Expand Down

0 comments on commit 43924f1

Please sign in to comment.