Skip to content
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

Can't cleanly delete CloudFormation stack due to circular dependency #1678

Closed
drj11 opened this issue Apr 18, 2017 · 2 comments
Closed

Can't cleanly delete CloudFormation stack due to circular dependency #1678

drj11 opened this issue Apr 18, 2017 · 2 comments
Assignees
Labels

Comments

@drj11
Copy link
Contributor

drj11 commented Apr 18, 2017

(for tag v1.5.5commit abca285)

When you try and delete a stack the delete operation will eventually fail.
At the moment this is merely annoying because
the failure only leaves behind a few security groups which do not cost anything.

But the undeleted security groups do clutter up the account.

The failure is something like:

 	15:53:26 UTC+0100 	DELETE_FAILED 	AWS::EC2::SecurityGroup 	ELBSecurityGroup 	resource sg-9f14bae0 has a dependent object

this happens because some of the security groups have circular dependencies (these circular dependencies were added in #1606 ).

While CloudFormation can create security groups with circular dependencies, apparently it can't delete them.

As a workaround I've tried deleting the egress rules from a security group by hand and trying the delete again.
It's take uncharacteristically long, even by CloudFormation standards.

@drj11 drj11 added the cloud label Apr 18, 2017
@drj11 drj11 self-assigned this Apr 18, 2017
@hackdna
Copy link
Member

hackdna commented Apr 18, 2017

I might have seen this once but I was able to delete several stacks without issues. I think it's a transient error.

@drj11
Copy link
Contributor Author

drj11 commented Apr 19, 2017

Think you're right. Transient. Closing.

@drj11 drj11 closed this as completed Apr 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants