-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
issues with aws_security_group and multiple ingress blocks #3346
Comments
Hi folks 👋 Sorry this has been a longstanding issue with the AWS provider. The fix for this should be contained in #4416 which will be released with v1.19.0 of the AWS provider, likely middle of next week. Shout outs to @loivis (and @svanharmelen who submitted an earlier, likely correct PR, which I admittedly should have reviewed and merged sooner: #3628) Given there were so many various issues surrounding this bug, I will be locking this issue (amongst all the others) to encourage any lingering issues/discussion to be fully described in new issue(s) for consolidation. Thanks for your understanding. |
Terraform Version
Run
terraform -v
to show the version. If you are not running the latest version of Terraform, please upgrade because your issue may have already been fixed.Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Expected Behavior
This should idempotently create a security group with 2 rules ONCE, then consider it unchanged
Actual Behavior
It tries to update the rules every time, and fails (perhaps trying to add a conflicting rule before removing? not totally sure.)
Steps to Reproduce
Run the above config (multiple times)- only variable is a VPC ID
Important Factoids
Having separate ingress blocks is how you would define different descriptions- so tha's why I don't just have multiple CIDRs defined in the single rule.
The separate aws_security_group_rule config commented at the bottom is a workaround that seems to work.
The text was updated successfully, but these errors were encountered: