-
Notifications
You must be signed in to change notification settings - Fork 630
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
Cloudflare record content always causes updates even when the value doesn't change #3864
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
the issue here is that you're using the shortened IPv6 address and we don't flatten it in the provider. if you use the expanded version for now, you won't see the drift. |
Just to make sure I understand you correctly: I'm using the IPv6 value from Vultr provider. You're saying that they use the shortened IPv6 version which causes a drift because CF provider would store the full version in the state. So until it's fixed, my best approach to resolve the issue is to transform the shortened IPv6 somehow to its full version before sending to CF. Does that sound right? I'm not super fluent in networking so just want to make sure I'm not misunderstanding anything here. Thanks! |
ipv6 addresses allow you to represent values in multiple ways while all meaning the same thing. two examples:
by the sounds of things, another provider is giving you the trimmed version while cloudflare is always expanding or padding it. you can always use |
Thanks for the explanation @jacobbednarz, I appreciate it. Since this issue remains open, I assume yall plan to support this use case in the future, correct? No rush, just want to understand if I need to come up with a long-term fix for this or not. No rush either way, it's a personal use case so I can make do with some oddity if it will be addressed later. Also open to potentially making a PR if that's something you may find helpful. |
this isn't something on the team's radar right now. i'm focused elsewhere but can review a PR if you'd like to send one over. |
This functionality has been released in v4.41.0 of the Terraform Cloudflare 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! |
Confirmation
Terraform and Cloudflare provider version
Terraform v1.8.5
on darwin_arm64
Affected resource(s)
Terraform configuration files
Link to debug output
https://gist.github.com/alexluong/aebb6f23c57805ff87316f8dd74667ac
Panic output
No response
Expected output
After the initial
terraform apply
, subsequent runs won't show any changes.Actual output
Terraform registers that the record is always changing, causing "cloudflare_record.my_record will be updated in-place" on every
terraform plan
.Steps to reproduce
content
is a variable (either a local variable or coming from another resource)terraform apply
to apply the changeterraform apply
again immediatelyAdditional factoids
No response
References
Maybe this is fixed by #3776, I'm not sure. It seems this resource & field is actively being worked on.
The text was updated successfully, but these errors were encountered: