aws-cloudformation / aws-cloudformation/cloudformation-coverage-roadmap

[AWS::CloudFormation::Stack] - [Enhancement] - Support More Character Types in Stack Names

Open
#2,246 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
No language data
Stars
1.1k
Forks
62
PR merge metrics
No merged PRs in 30d

Description

### Name of the resource

AWS::CloudFormation::Stack

### Resource name

_No response_

### Description

Support more character types in stack names.

Cfn stacks are currently limited to 128 alphanumeric and dash characters. We'd like it expanded to include periods and other symbols.

Matching what's allowed for IAM role names would be preferred (alphanumerics and `_+=,.@-`).

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-role.html#cfn-iam-role-rolename

### Other Details

We'd like to be able to have a human-friendly "fully-qualified" name for all AWS resources. For example, suppose a service is organized hierarchically by:

1. Stage
2. Region
3. Cell

We'd like to name a stack `my-service.us-east-1.cell-0.my-stack`, where period is used as the separator between level fragments.

Using fully qualified names lets us deploy multiple copies of a service into the same account during development (e.g. have cell 0 and cell 1 in the same personal development account).

Currently we have to use something like `--` as the separator which can be difficult to read. For example, `my-service--us-east-1--cell-0--my-stack`.

Contributor guide

Open the contributing guide

Research direction

Start with the AWS::CloudFormation::Stack naming constraint described in the issue and compare it with the linked IAM role naming rules. Review the repository for an entry point or test covering stack-name validation; done means the requested periods and other supported IAM-style characters are accepted in stack names.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
cloud
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.