-
Notifications
You must be signed in to change notification settings - Fork 4k
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
[Typescript] cdk deploy uses Class name instead of stackName prop for the initial DescribeStacks API call #7319
Comments
stackName
prop for the initial DescribeStacks
API call
Looks like a regression of #4997 since I'm using 1.31.0 |
Got an email from @shivlaks with the following:
My example doesn't have a |
yes please! particularly the context part. new projects have that key established so their behaviour is different. you can also try adding the key and setting it to true. |
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
I hadn't noticed @SomayaB is waiting for my reply. I'll take a look soon |
@shivlaks I couldn't reproduce this issue again. I was running In any case, here's the verbose output. I see
|
@gustakasn0v thanks for the update! if you do end up running into the issue again, feel free to repoen and we can pick up investigation again. closing for now. |
reopening with apparent regression in version 1.62.1 - in a codepipeline (deployed by another codepipeline earlier, if that matters) I see
the name of the stack is apparently correct and seems to exist... ? thanks! will post more if i find a workaround |
When running
cdk deploy
, cdk calls thecloudformation:DescribeStacks
API to gather data about the currently deployed stacks. If a stack name is passed (ie. via thestackName
prop, or theid
constructor param ofStack
), cdk still uses the class name instead of this name to do that initial call.Reproduction Steps
SampleStack
another-stack.ts
deploy.ts
cdk deploy -a "npx ts-node deploy.ts"
Error Log
After following the steps above, I get the following error:
LambdaApiStack failed: AccessDenied: User: XXX is not authorized to perform: cloudformation:DescribeStacks on resource: arn:aws:cloudformation:eu-west-1:XXX:stack/AnotherStack/*
Environment
aws/codebuild/standard:3.0
build typeOther
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: