core: Stage name check allows underscores ('_') and periods ('.') while stack name does not allow them #23098
Labels
@aws-cdk/core
Related to core CDK functionality
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
p2
Describe the bug
The following code
results into the following
synth
errorAccording to error message I can use underscores and periods. My next try with the code
results into the following
synth
errorExpected Behavior
Provide clear error message what characters are allowed for stage id.
Current Behavior
Error message reads that underscores and periods are allowed for stage id but
synth
returns errors for those.Reproduction Steps
See https://github.com/yuyokk/aws-cdk-stage-name-bug/blob/main/lib/hello-cdk-stack.ts
Possible Solution
Fix stage name check to be consistent with stack id checks.
PR for a possible fix #23089
Additional Information/Context
No response
CDK CLI Version
2.51.1
Framework Version
No response
Node.js Version
v16.18.1
OS
macOS 13.0.1
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: