Skip to content

CLI: report cdk bootstrap versions #32402

Open
@mrgum

Description

@mrgum

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/coreRelated to core CDK functionalityeffort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.p3package/toolsRelated to AWS CDK Tools or CLI

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions