Skip to content

(deploy): Support changing stack name at deploy time #38525

Description

@twasink

Describe the feature

Add an option to cdk deploy to specify the stack name.

Use Case

It's not uncommon to want to have multiple similar configured stacks. Currently, CDK requires that you specify the stack name during the synth stage - but CloudFormation uses the stack name at deploy time.

It would be handy if you could override the synth'd stack name during cdk deploy.

Proposed Solution

No response

Other Information

cdk synth puts the stack name in the generated manifest.json file. You can edit that file without consequence, allowing a workaround.

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

AWS CDK Library version (aws-cdk-lib)

unknown

AWS CDK CLI version

2.1135.1

Environment details (OS name and version, etc.)

Windows, not that it should matter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.p2package/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