Description
Describe the feature
I would like cdk options that reports the versions of the bootstrap template that comes with the installed cdk and the version currently deployed
Use Case
I would like to check and report if a bootstrap is up to date, without running a cdk deploy or bootstrap
Proposed Solution
cdk current version can be got from cdk bootstrap --show-template | yq '.Resources.CdkBootstrapVersion.Properties.Value'
cdk currently deployed version can be got from the ssm parameter /cdk-bootstrap/hnb659fds/version
cdk bootstrap --show-bootstrap-versions
might show
latest-bootstrap: 25
deployed-bootstrap: 21
cdk bootstrap --show-bootstrap-latest-version
might show
latest-bootstrap: 25
cdk bootstrap --show-bootstrap-deployed-version
might show
deployed-bootstrap: 21
cdk bootstrap --is-bootstrap-up-to-date
might show true/false
Other Information
If the options could support the --json and --yaml flags to give better programatic use, all the better
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
CDK version used
2.171.1 (build a95560c)
Environment details (OS name and version, etc.)
macos 15.1.1