Skip to content

Commit

Permalink
Turn off CDK version reporting for CodeDeploy blue-green
Browse files Browse the repository at this point in the history
CodeDeploy has a check that prevents "infra" changes happening in the same stack update as task definition changes.  When the CDK is upgraded, the CDK::Metadata resource gets updated in the template, and CodeDeploy thinks it is an "infra" change and rejects the change set.
  • Loading branch information
clareliguori committed Jan 8, 2021
1 parent c698fa8 commit b2f974e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions trivia-backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ npm install
npm run build
cdk synth -o build --app 'node ecs-service-blue-green.js'
cdk --no-version-reporting synth -o build --app 'node ecs-service-blue-green.js'
cdk deploy --app ecs-service-blue-green.js TriviaBackendTest
cdk --no-version-reporting deploy --app ecs-service-blue-green.js TriviaBackendTest
cdk deploy --app ecs-service-blue-green.js TriviaBackendProd
cdk --no-version-reporting deploy --app ecs-service-blue-green.js TriviaBackendProd
```

Follow the instructions in the [canaries](../canaries) folder to deploy synthetic traffic canaries and their associated alarms. Lastly, configure rollback alarms on the CloudFormation stacks for the backend services.
Expand Down
2 changes: 1 addition & 1 deletion trivia-backend/infra/cdk/buildspec-blue-green.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ phases:
- cd $CODEBUILD_SRC_DIR/trivia-backend/infra/cdk
- npm ci
- npm run build
- cdk synth -o build --app 'node ecs-service-blue-green.js'
- cdk --no-version-reporting synth -o build --app 'node ecs-service-blue-green.js'
- cp StackConfig.json build/

artifacts:
Expand Down

0 comments on commit b2f974e

Please sign in to comment.