CLI: report cdk bootstrap versions
- Dominant language
- TypeScript
- Stars
- 12.9k
- Forks
- 4.6k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 83
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
- [X] 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
Contributor guide
Research direction
Start with the CDK bootstrap command and its existing --show-template behavior, then trace how the deployed /cdk-bootstrap/hnb659fds/version SSM parameter can be queried. Define the requested version and up-to-date outputs, including --json and --yaml behavior, and verify that the commands report the installed template version and deployed version without deploying.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, typescript
- Domain
- cli, cloud, infrastructure
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100