Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Deploy Stateless to Gamma #386

Merged
merged 1 commit into from
Jul 2, 2024
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