-
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
After modifying VPC to assign IPv6, using ipv6_cidr_block causes failure #6710
Comments
Hi @fiducioso-dan 👋 Sorry for the trouble. I have submitted a pull request to fix this behavior, however it is currently dependent on a change upstream in Terraform core which means this may not get fixed until version 2.0.0+ of the AWS provider at this point (due to timing with Terraform 0.12): #6721 |
@bflad It's amazing that you have a PR so quickly. Thank you for your excellent work. |
The fix to the |
This has been released in version 2.8.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Terraform Version
Terraform v0.11.10, provider-aws v1.50.0
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
When aws_vpc property assign_generated_ipv6_cidr_block goes from false to true, treat ipv6_cidr_block as "calculated" i.e. to be determined at runtime.
And of course the new aws_network_acl_rule should have created successfully.
Actual Behavior
During planning the acl rule treats the ipv6_cidr_block as missing instead of calculated. Then get error: diffs didn't match during apply.
WORKAROUND: Just run it a second time. Terraform will pick up the new CIDR during planning.
Steps to Reproduce
terraform apply
with enable_ipv6=falseterraform apply
with enable_ipv6=trueImportant Factoids
References
There are many other issues in the backlog related to diffs didn't match during apply but I hope I reduced the case enough to make this issue fixable.
The text was updated successfully, but these errors were encountered: