-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Cannot remove inline ingress or egress from aws_security_group #20046
Comments
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you! |
Please keep open |
This functionality has been released in v5.8.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! |
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. |
It appears this behavior has been part of
aws_security_group
from the start. There are bug reports about it from as far back as 2017 (now over 4 years old). If this is not going to be fixed, then please document and explain the behavior and provide a workaround.After you provision an
aws_security_group
with dynamic inlineingress
andegress
rules, if you try to remove all of one kind of rule, the plan/apply succeeds, but none of the rules are removed.Although this is something of a duplicate, I am opening it anyway because the bugs it duplicates are so old and this is a serious bug. I suggest leaving this open despite it being a duplicate because it has all the Terraform code and commands you need to reproduce this bug easily.
Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform v1.0.1
on darwin_amd64
Affected Resource(s)
Terraform Configuration Files
Terraform code
Expected Behavior
Removing inline ingress or egress rules should remove them from the security group
Actual Behavior
Removing all inline ingress or egress rules has no effect on the security group. (The security group is updated
as expected if at least one inline ingress and one inline egress rule remain.)
Steps to Reproduce
vpc_id
to a VPC in your account.traffic_disabled = true
- Terraform output
traffic_disabled = false
- Terraform output
traffic_disabled = true
- Terraform output
- Terraform output
References
The text was updated successfully, but these errors were encountered: