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
[Bug]: DependencyViolation with ENIs associated with security group of lambda #37046
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
i am also facing the same issue, security group stucks in still destroying... |
My guess is that it's this change in for _, eni := range enis {
- eni := eni
+ eni := &eni This should be fixed by this week's upgrade to Go 1.22 (language change to "for" loop variables): #36996. @vamshidhar-rapolu After tomorrow's Terraform AWS Provider v5.47.0 release could you please download the new version and retry? Thanks. |
@ewbankkit The issue seems to be resolved with |
Warning This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
This functionality has been released in v5.47.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! |
Terraform Core Version
1.8.1
AWS Provider Version
5.46.0
Affected Resource(s)
aws_security_group
Expected Behavior
Terraform destroy of the lambda is expected to be successful with the
aws_security_group
being destroyed successfully. This works using the aws provider version5.45.0
Actual Behavior
Terraform destroy fails to delete the security group of the lambda due to dependency on the network interface eni.
╷ │ Error: deleting Security Group (sg-xxxxxxxxxxxxxxxxx): DependencyViolation: resource sg-xxxxxxxxxxxxxxxxx has a dependent object │ status code: 400, request id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx │ │ ╵
Deleting the network interface(s) associated with the security group manually and retrying the terraform destroy works as expected.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Running
terraform destroy
isn't successful with aws provider5.46.0
due to theDependencyViolation
error stated above.Debug Output
No response
Panic Output
No response
Important Factoids
There is no issue with the destroy run using the aws provider version
5.45.0
References
Relates #32756.
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: