Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI: report cdk bootstrap versions #32402

Open
1 of 2 tasks
mrgum opened this issue Dec 6, 2024 · 1 comment
Open
1 of 2 tasks

CLI: report cdk bootstrap versions #32402

mrgum opened this issue Dec 6, 2024 · 1 comment
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

Comments

@mrgum
Copy link

mrgum commented Dec 6, 2024

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

@mrgum mrgum added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Dec 6, 2024
@github-actions github-actions bot added the package/tools Related to AWS CDK Tools or CLI label Dec 6, 2024
@khushail khushail added investigating This issue is being investigated and/or work is in progress to resolve the issue. p2 and removed needs-triage This issue or PR still needs to be triaged. labels Dec 6, 2024
@khushail khushail self-assigned this Dec 6, 2024
@khushail
Copy link
Contributor

khushail commented Dec 6, 2024

Hi @mrgum , thanks for requesting this. I see using the cdk bootstrap --show-template , you can see the latest template and the compare with the one which is deployed , but there is no such feature to specifically see the versions so your FR might be a good option to quickly see the updates.
Since this is a good-to-have feature, I am marking this as P3 to welcome contributions outside CDK Team.
Thanks for volunteering for contribution. Looking forward to it.

@khushail khushail added p3 effort/small Small work item – less than a day of effort and removed p2 investigating This issue is being investigated and/or work is in progress to resolve the issue. labels Dec 6, 2024
@khushail khushail removed their assignment Dec 6, 2024
@khushail khushail added the @aws-cdk/core Related to core CDK functionality label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants