Skip to content

core: Typo and bad command guidance for rebootstrap #31963

Open
@perpil

Description

Describe the bug

With CDK 3.364, there is a slight typo runing should be running and an incorrect bootstrap command suggested. Instead of a comma between the different account/region pairs in the bootstrap command, it should be a space. i.e.
cdk bootstrap aws://<redactedAccount>/us-east-1,aws://<redactedAccount>/us-west-2 should be cdk bootstrap aws://<redactedAccount>/us-east-1 aws://<redactedAccount>/us-west-2

Regression Issue

  • Select this option if this issue appears to be a regression.

Last Known Working CDK Version

No response

Expected Behavior

Correct spelling and suggested command to rebootstrap can be copy and pasted.

Current Behavior

31885	(cli): Bootstrap stack outdated

	Overview: The bootstrap stack in aws://<redactedAccount>/us-east-1,aws://<redactedAccount>/us-west-2 is outdated.
	          We recommend at least version 21, distributed with CDK CLI
	          2.149.0 or higher. Please rebootstrap your environment by
	          runing 'cdk bootstrap aws://<redactedAccount>/us-east-1,aws://<redactedAccount>/us-west-2'

	Affected versions: bootstrap: <21

	More information at: https://github.com/aws/aws-cdk/issues/31885

Running this command results in:

❯ cdk bootstrap aws:///us-east-1,aws:///us-west-2
Expected environment name in format 'aws:///', got: aws:///us-east-1,aws:///us-west-2

Reproduction Steps

This is an error in the text. To repro, attempt to deploy a stack that was bootstrapped with a version prior to 2.149

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.164.1 (build bb9275c)

Framework Version

No response

Node.js Version

20.13.1

OS

MacOS Sonoma 14.6.1

Language

TypeScript

Language Version

No response

Other information

Related to the fix in: #31885

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/coreRelated to core CDK functionalitybugThis issue is a bug.effort/smallSmall work item – less than a day of effortp2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions