CLI: report cdk bootstrap versions #32402
Labels
@aws-cdk/core
Related to core CDK functionality
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
p3
package/tools
Related to AWS CDK Tools or CLI
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 showlatest-bootstrap: 25
deployed-bootstrap: 21
cdk bootstrap --show-bootstrap-latest-version
might showlatest-bootstrap: 25
cdk bootstrap --show-bootstrap-deployed-version
might showdeployed-bootstrap: 21
cdk bootstrap --is-bootstrap-up-to-date
might show true/falseOther Information
If the options could support the --json and --yaml flags to give better programatic use, all the better
Acknowledgements
CDK version used
2.171.1 (build a95560c)
Environment details (OS name and version, etc.)
macos 15.1.1
The text was updated successfully, but these errors were encountered: