-
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
CfnThingGroup: Destroying stack fails #26533
Comments
Well, it looks like the service is throwing this error for some reason. Could you please share the code you deployed? Additionally, can you show the command you ran and the full error message posted? How far in the destroy command did it get before throwing this error? |
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. |
Here is the line of code that adds the Thing group to my template
the command is a usual For destroying I'm using The complete error message is here:
|
Looks like a service error, please delete the stack manually from the console, this isn't uncommon to have to do |
It is not a problem to delete it manually.. the problem is that our test automation deploying the stack, doing the tests and destroying it. And every PR or commit to PR the cdk is being deployed again under random name to have a clear AWS resources such as sqs queues, iot stuff and more.. so in the end we have many stacks and many resources left in AWS.. |
Can you please share the code which you are deploying -> deleting? |
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. |
The entire code will be a problem.. But as I wrote before. It is a simple CDK application. created using |
hi, I've developed a side project to share with you and it worked there. The only difference is the bootstrap which lead to the execution policy. Our bootstrap has a restricted execution policy, although we have there create/delete/updatething group on all thinggroup resources - it fails - with the null message as wrote before.. So for the test I allowed all Iot actions "iot:*" and it is working now. No entry in the cloud trail or any other documentation about some other permissions.. So I guess I have a try and error session in front of me. unless you can direct me to the right one ? |
Ok. I've found the missing permission - and it is "iot:DescribeThingGroup".. I didn't find any documentation about it nowhere..
Thanks for the help!! |
We don't handle the docs, error, or cloudtrail here - we just copy CloudFormation's model and docs. If you have docs improvements please give suggestions on the pages you have suggestions for, or reach out to the coverage roadmap to ask CloudFormation directly for anything else |
|
Describe the bug
Deploying a stack with a single thing group. Works properly.. cdk destroy fails with the message below
Resource handler returned message: "null" (RequestToken: 4103ff57-7367-a549-4eee-a6f7f85be822, HandlerErrorCode: InternalFailure)
Expected Behavior
To see the thing group deleted and not having error
Current Behavior
Stack is not being removed due to failure of removing the thing group
Reproduction Steps
Deploying and destroying the same stack which has single resource of type
CfnThingGroup
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.88.0
Framework Version
2.88.0
Node.js Version
16.13.1
OS
Win 10
Language
Java
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: