diff --git a/cdk.context.json b/cdk.context.json index dc1724b53..3d8e98ba3 100644 --- a/cdk.context.json +++ b/cdk.context.json @@ -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 } } diff --git a/lib/pipeline/statefulPipelineStack.ts b/lib/pipeline/statefulPipelineStack.ts index f19926275..510367b7e 100644 --- a/lib/pipeline/statefulPipelineStack.ts +++ b/lib/pipeline/statefulPipelineStack.ts @@ -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();