You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a very strange behaviour with one of the deployments. I get this error, but the deployment finally goes well.
RmsisCdkStack: creating CloudFormation changeset...
[··························································] (0/23)
12:19:11 pm | UPDATE_IN_PROGRESS | AWS::CloudFormation::Stack | RmsisCdkStack
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 (/home/pankaj/work/optimizory/rmsis-cdk-prod/node_modules/aws-cdk/lib/index.js:362:46430)
at Request.callListeners (/home/pankaj/work/optimizory/rmsis-cdk-prod/node_modules/aws-cdk/lib/index.js:362:90083)
at Request.emit (/home/pankaj/work/optimizory/rmsis-cdk-prod/node_modules/aws-cdk/lib/index.js:362:89531)
at Request.emit (/home/pankaj/work/optimizory/rmsis-cdk-prod/node_modules/aws-cdk/lib/index.js:362:196289)
at Request.transition (/home/pankaj/work/optimizory/rmsis-cdk-prod/node_modules/aws-cdk/lib/index.js:362:189841)
at AcceptorStateMachine.runTo (/home/pankaj/work/optimizory/rmsis-cdk-prod/node_modules/aws-cdk/lib/index.js:362:154713)
at /home/pankaj/work/optimizory/rmsis-cdk-prod/node_modules/aws-cdk/lib/index.js:362:155043
at Request.<anonymous> (/home/pankaj/work/optimizory/rmsis-cdk-prod/node_modules/aws-cdk/lib/index.js:362:190133)
at Request.<anonymous> (/home/pankaj/work/optimizory/rmsis-cdk-prod/node_modules/aws-cdk/lib/index.js:362:196364)
at Request.callListeners (/home/pankaj/work/optimizory/rmsis-cdk-prod/node_modules/aws-cdk/lib/index.js:362:90251) {
code: 'ValidationError',
time: 2023-10-28T06:50:00.560Z,
requestId: '21c69760-4d2c-4a55-9042-2cf8274132cb',
statusCode: 400,
[██████████████████████████████████████████████████████████] (28/23)
12:19:11 pm | UPDATE_IN_PROGRESS | AWS::CloudFormation::Stack | RmsisCdkStack
12:19:25 pm | CREATE_IN_PROGRESS | AWS::CloudFormation::Stack | RmsisCdkStack-rmsi...dcba3-EV2VM63XS1U5
12:19:26 pm | UPDATE_IN_PROGRESS | AWS::CloudFormation::Stack | RmsisCdkStack-rmsi...d950-139G4TMYEZ4J1
12:19:26 pm | UPDATE_IN_PROGRESS | AWS::CloudFormation::Stack | RmsisCdkStack-rmsi...5a7a-1KFZA9RPG4MAX
``
I'm using nested stacks in AWS CDK, and it appears that this error is related to the stackName of one of the nested stacks. I've checked my code, and it appears to follow the naming constraints for AWS CloudFormation stack names.
Here's a simplified version of my CDK code, with a focus on the nested stack:
`
const stack = new ClientStack(this, "cli-"+clients[i].tenantId , stackprops);
`
I'm using AWS CDK version 2.103.1.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a very strange behaviour with one of the deployments. I get this error, but the deployment finally goes well.
Beta Was this translation helpful? Give feedback.
All reactions