Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions lib/pipeline/statelessPipelineStack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
// */
Expand Down