-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws-cdk: Validation error for stackName #27746
Labels
Comments
alifrugal
added
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
labels
Oct 30, 2023
I believe this issue is related: #27526 |
khushail
added
investigating
This issue is being investigated and/or work is in progress to resolve the issue.
and removed
needs-triage
This issue or PR still needs to be triaged.
labels
Oct 31, 2023
This was probably fixed in #27692 (released as |
khushail
removed
the
investigating
This issue is being investigated and/or work is in progress to resolve the issue.
label
Nov 22, 2023
Fixed in 2.104.0 |
|
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Since @2.98, I have got a validation error on the names of the stacks when launching a cdk application with nested stacks.
Error occurred while monitoring stack: Error [ValidationError]: 2 validation errors detected: Value '' at 'stackName' failed to satisfy constraint: Member must have length greater than or equal to 1; Value '' at 'stackName' failed to satisfy constraint: Member must satisfy regular expression pattern: [a-zA-Z][-a-zA-Z0-9]*|arn:[-a-zA-Z0-9:/._+]* at Request.extractError (/usr/local/lib/node_modules/aws-cdk/lib/index.js:362:46430) at Request.callListeners (/usr/local/lib/node_modules/aws-cdk/lib/index.js:362:90083) at Request.emit (/usr/local/lib/node_modules/aws-cdk/lib/index.js:362:89531) at Request.emit (/usr/local/lib/node_modules/aws-cdk/lib/index.js:362:196289) at Request.transition (/usr/local/lib/node_modules/aws-cdk/lib/index.js:362:189841) at AcceptorStateMachine.runTo (/usr/local/lib/node_modules/aws-cdk/lib/index.js:362:154713) at /usr/local/lib/node_modules/aws-cdk/lib/index.js:362:155043 at Request.<anonymous> (/usr/local/lib/node_modules/aws-cdk/lib/index.js:362:190133) at Request.<anonymous> (/usr/local/lib/node_modules/aws-cdk/lib/index.js:362:196364) at Request.callListeners (/usr/local/lib/node_modules/aws-cdk/lib/index.js:362:90251) { code: 'ValidationError', time: 2023-10-30T06:44:13.579Z, requestId: '70dbfc8a-0639-4aa7-aa14-014fe1ec811a', statusCode: 400,
Expected Behavior
If I downgrade CDK (installed globally) to @2.96, I don't have the issue.
Current Behavior
Error occurred while monitoring stack: Error [ValidationError]: 2 validation errors detected: Value '' at 'stackName' failed to satisfy constraint: Member must have length greater than or equal to 1; Value '' at 'stackName' failed to satisfy constraint: Member must satisfy regular expression pattern: [a-zA-Z][-a-zA-Z0-9]*|arn:[-a-zA-Z0-9:/._+]* at Request.extractError (/usr/local/lib/node_modules/aws-cdk/lib/index.js:362:46430) at Request.callListeners (/usr/local/lib/node_modules/aws-cdk/lib/index.js:362:90083) at Request.emit (/usr/local/lib/node_modules/aws-cdk/lib/index.js:362:89531) at Request.emit (/usr/local/lib/node_modules/aws-cdk/lib/index.js:362:196289) at Request.transition (/usr/local/lib/node_modules/aws-cdk/lib/index.js:362:189841) at AcceptorStateMachine.runTo (/usr/local/lib/node_modules/aws-cdk/lib/index.js:362:154713) at /usr/local/lib/node_modules/aws-cdk/lib/index.js:362:155043 at Request.<anonymous> (/usr/local/lib/node_modules/aws-cdk/lib/index.js:362:190133) at Request.<anonymous> (/usr/local/lib/node_modules/aws-cdk/lib/index.js:362:196364) at Request.callListeners (/usr/local/lib/node_modules/aws-cdk/lib/index.js:362:90251) { code: 'ValidationError', time: 2023-10-30T06:44:13.579Z, requestId: '70dbfc8a-0639-4aa7-aa14-014fe1ec811a', statusCode: 400,
Reproduction Steps
Launch a stack with nested stacks
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.103.1
Framework Version
No response
Node.js Version
20.9.0
OS
MacOS 13.6
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: