Closed membra closed 2 years ago
Hey @membra,
SKIP - IN USE
) both originate from the same code section. In other words, if SKIP - IN USE
was issued as the action, the log should be EC2 Security Group '{resource_id}' has a network association and cannot be deleted without deleting the association first.
This is of course assuming this isn't a defect. Could you validate that the log and the execution log are from the exact same execution?hey @mlevit thank you
@mlevit Would you be able to provide some information on why this issue won't be fixed? :pray:
Hey @mwgamble sure thing.
Thanks for the explaination, I appreciate it :heart:
Describe the bug We noticed that at some point a security group that was part of a cloudformation stack got deleted while the rest of the stack remained.
This SG was marked as SKIP - IN USE during the destroy run
At the same time in logs it was mentioned as deleting as there are no associations with it
And we also see that it was actually deleted in cloudtrail
At the same time the stack couldn't be deleted because of other resources in it that had dependencies.
That led to a situation when developers when needing to redeploy the stack - couldn't do it because one resource of the stack was independently deleted. And they also couldn't delete and recreate the stack because of those dependencies.
There are several questions we have, could you please clarify on them: 1) Is it correct that if resources are deleted through their own endpoints? so basically if a resource is part of a cloudformation stack - it is not deleted through cloudformation endpoint? But it is deleted through it's own - means independently from cloudformation? 2) Perhaps the non associated sg cleanup should only kick on resources not accosiated to cloudformation? Actually any similar cleanup should make that check. The tag is called aws:cloudformation:logical-id. That might increase processing time, of course, but the fact is with current approach it leads to some disruptive issues and with a lot of accounts like in our case it is very hard to cleanup manually after cleanup. What can be done to improve logic in that space? 3) In the execution log the resource was marked as SKIP - IN USE - but it was actually deleted. Could there be a valid reason for that?
Thank you