diff --git a/lib/pipeline/statelessPipelineStack.ts b/lib/pipeline/statelessPipelineStack.ts index 7b0ec5115..13e8e1979 100644 --- a/lib/pipeline/statelessPipelineStack.ts +++ b/lib/pipeline/statelessPipelineStack.ts @@ -175,28 +175,28 @@ export class StatelessPipelineStack extends cdk.Stack { { pre: [stripAssetsFromAssembly] } // I think this should only be done once across stages ); + /** + * Deployment to Gamma (Staging) account + */ + const gammaConfig = getEnvironmentConfig(AppStage.GAMMA); + if (!gammaConfig) throw new Error(`No 'Gamma' account configuration`); + pipeline.addStage( + new OrcaBusStatelessDeploymentStage( + this, + 'OrcaBusGamma', + gammaConfig.stackProps.statelessConfig, + { + account: gammaConfig.accountId, + region: gammaConfig.region, + } + ), + { 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 Gamma (Staging) account - // */ - // const gammaConfig = getEnvironmentConfig(AppStage.GAMMA); - // if (!gammaConfig) throw new Error(`No 'Gamma' account configuration`); - // pipeline.addStage( - // new OrcaBusStatelessDeploymentStage( - // this, - // 'OrcaBusGamma', - // gammaConfig.stackProps.statelessConfig, - // { - // account: gammaConfig.accountId, - // region: gammaConfig.region, - // } - // ), - // { pre: [new pipelines.ManualApprovalStep('PromoteToGamma')] } - // ); - // /** // * Deployment to Prod account // */