-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
aws_security_group always think there is a change #10099
Comments
The IP i use in the ingress blocks seems irrelevant - the issue can be reproduced with number of CIDR block i tested with, real and made up ones. |
Same issue with Terraform 0.7.11 |
FYI, If you take out any of one of the 3 ingress rules in the code above, it does not reproduce the issue. |
You should group ingress cidr blocks that have the same attributes so that:
becomes
|
@90kts Excellent - thanks for that. I wouldn't have thought having ingress resources that have the same attributes individually would be a problem but sure enough when i grouped them together, subsequent plan shows no changes and resolves my issue/problem. The ingress resources were defined like that to be clearer but i don't think it's worth having this apply/plan issue so i'll make the change. Thanks again!
|
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. |
Terraform Version
Terraform v0.7.10
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
apply creates the resource
then immediately after, terraform plan should not show any changes
Actual Behavior
terraform apply shows:
then terraform plan after shows changes after successful apply EVEN with no changes in any of the files.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
terraform plan
References
might be related to:
The text was updated successfully, but these errors were encountered: