Skip to content

This is not possible to delete stacks with name longer than 128 chars #6847

Answered by kdaily
ikhvostenkov asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ikhvostenkov,

Thanks for writing. According to the CloudFormation CreateStack documentation, stack names are limited to 128 characters:

StackName

The name that's associated with the stack. The name must be unique in the Region in which you are creating the stack.

Note

A stack name can contain only alphanumeric characters (case sensitive) and hyphens. It must start with an alphabetical character and can't be longer than 128 characters.

It looks like that would be a server side Validation error (if you provide --debug logs we can confirm), as the API does not model the length limitations for us to do validation on client side.

I'll check in with the CDK team for some more information.

Replies: 8 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by tim-finnigan
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
cloudformation response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
4 participants
Converted from issue

This discussion was converted from issue #6840 on April 04, 2022 20:24.