geostore
geostore copied to clipboard
Run production bootstrap before `cdk diff`
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
- 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
This was not enough to fix CheckBootstrapVersion
- reopening.