Skip to content

Commit

Permalink
Merge pull request #389 from umccr/release-stateful-pipeline-prod
Browse files Browse the repository at this point in the history
Released Stateful Pipeline to Production
  • Loading branch information
victorskl authored Jul 5, 2024
2 parents d3c9706 + 50888ab commit 7ff32c0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 18 deletions.
8 changes: 8 additions & 0 deletions cdk.context.json
Original file line number Diff line number Diff line change
Expand Up @@ -242,5 +242,13 @@
"security-group:account=843407916570:region=ap-southeast-2:securityGroupName=OrcaBusSharedComputeSecurityGroup:vpcId=vpc-00eafc63c0dfca266": {
"securityGroupId": "sg-03abb47eba799e044",
"allowAllOutbound": false
},
"security-group:account=455634345446:region=ap-southeast-2:securityGroupName=OrcaBusSharedComputeSecurityGroup:vpcId=vpc-0e226f3aa0f9c5781": {
"securityGroupId": "sg-069849c9157d4fb66",
"allowAllOutbound": false
},
"security-group:account=472057503814:region=ap-southeast-2:securityGroupName=OrcaBusSharedComputeSecurityGroup:vpcId=vpc-0dc99f521ceaa3f2d": {
"securityGroupId": "sg-02e363a39220c955f",
"allowAllOutbound": false
}
}
36 changes: 18 additions & 18 deletions lib/pipeline/statefulPipelineStack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,24 +122,24 @@ export class StatefulPipelineStack extends cdk.Stack {

// Some stack have dependencies to the 'shared stack' so we need to deploy it first beforehand
// should only be a one-off initial deployment
//
// /**
// * Deployment to Prod account
// */
// const prodConfig = getEnvironmentConfig(AppStage.PROD);
// if (!prodConfig) throw new Error(`No 'Prod' account configuration`);
// pipeline.addStage(
// new OrcaBusStatefulDeploymentStage(
// this,
// 'OrcaBusProd',
// prodConfig.stackProps.statefulConfig,
// {
// 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 OrcaBusStatefulDeploymentStage(
this,
'OrcaBusProd',
prodConfig.stackProps.statefulConfig,
{
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 7ff32c0

Please sign in to comment.