-
Notifications
You must be signed in to change notification settings - Fork 558
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
tf always report changes to cloudflare_record of type SRV since v3.25.0 #1955
Comments
using https://github.com/cloudflare/terraform-provider-cloudflare/blob/master/internal/provider/resource_cloudflare_record_test.go#L188 as a test case, I'm unable to replicate. are you able to run this example locally and confirm if you're still seeing the issue? |
Notice my provided tf code uses I have just rewritten all my SRV cf record resource to use |
good to know @andyli, thanks. i'm unsure if earlier versions allowed that intentionally but the |
Having this issue with data block. My issue is with: If I don't set them, then they are being "removed" every time. CF provider version Annoying Update: |
seeing the same as @graudeejs in my repo. @jacobbednarz what's the proper way of handling this? |
I worked this around by setting |
@graudeejs - according to the provider documentation, value conflicts with data block. Can you provide an example of how you can specify value for an SRV cloudflare_record? |
resource "cloudflare_record" "example" {
type = "SRV"
name = "example"
ttl = 3600
zone_id = "example_zone_id"
proxied = false
priority = 100
# weight port host
value = "100 443 foo.example.com"
lifecycle {
ignore_changes = [
data
]
}
} |
I've abstracted this in module (needed module anyway) - using string interpolation to build value from module parameters |
Thanks for sharing @graudeejs |
Just found this thread. Sorry for the hassle, perhaps it would've been better not to make this a slow rollout so that it's applied to all zones at the same time. This change has been rolled out to most zones now, which means the API no longer sends the "service"/"proto"/"name" data fields. Except for a few zones (those will be rolled out later in the week) it should be possible to simply omit these fields from the data map, and Terraform should not report any diffs. If, on Monday, any diffs are still shown with the fields removed from the data map, please let us know! Apologies again for this issue, it's pretty annoying indeed. |
Confirmation
Terraform and Cloudflare provider version
Affected resource(s)
cloudflare_record
Terraform configuration files
Link to debug output
https://gist.github.com/andyli/b997817655eb2b6645da1d28b2e811fb
Panic output
No response
Expected output
no changes
Actual output
always changes to the cloudflare_record resource
Steps to reproduce
type = "SRV"
Additional factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: