geostore icon indicating copy to clipboard operation
geostore copied to clipboard

Run production bootstrap before `cdk diff`

Open l0b0 opened this issue 3 years ago • 1 comments

Bug Description

The cdk diff command in our deploy pipeline runs before bootstrapping CDK, resulting in warnings like the following:

[+] Unknown Rules: {"CheckBootstrapVersion":{"Assertions":[{"Assert":{"Fn::Not":[{"Fn::Contains":[["1","2","3"],{"Ref":"BootstrapVersion"}]}]},"AssertDescription":"CDK bootstrap stack version 4 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."}]}}

How to Reproduce

  1. Push a release branch with a new major CDK version

What did you expect to happen? cdk bootstrap should run before cdk diff to avoid any misleading diff output.

What actually happened? See warning above.

Software Context

Environment: Production

Relevant software versions:

  • AWS CLI: aws-cli/1.19.72 Python/3.9.5 Linux/5.10.39-1-lts botocore/1.20.72
  • Poetry: Poetry version 1.1.6
  • CDK: 1.106.0 (build fe32f1c)

Additional context

l0b0 avatar Jun 01 '21 01:06 l0b0