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

Security Group resource fails to destroy when a rule references another group or entity that does not exist #20035

Closed
overlordchin opened this issue Jul 1, 2021 · 2 comments · Fixed by #26553
Labels
bug Addresses a defect in current functionality. service/ec2 Issues and PRs that pertain to the ec2 service.
Milestone

Comments

@overlordchin
Copy link

parent ticket: #19932

Problem statement. When a security resource references a resource that does not exist - more specifically if a rule uses a second security group as a source to allow traffic from and that group no longer exists (has been destroyed outside of terraform), a terraform destroy will fail with one of the following errors:

Error: No security group with ID "sg-0c9450f52f3c5e7dc"
Error: Error deleting security group: DependencyViolation: resource sg-02cd8eca8d630233c has a dependent object status 400

Expected behavior - A warning is displayed and the destroy continues to remove the resource as normal.

@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Jul 1, 2021
@ewbankkit ewbankkit added bug Addresses a defect in current functionality. service/ec2 Issues and PRs that pertain to the ec2 service. and removed needs-triage Waiting for first response or review from a maintainer. labels Jul 1, 2021
@github-actions github-actions bot added this to the v4.29.0 milestone Aug 31, 2022
@github-actions
Copy link

github-actions bot commented Sep 2, 2022

This functionality has been released in v4.29.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

github-actions bot commented Oct 3, 2022

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/ec2 Issues and PRs that pertain to the ec2 service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants