Skip to content

Instantly share code, notes, and snippets.

@egarbi
Last active September 16, 2025 12:34
Show Gist options
  • Select an option

  • Save egarbi/37cab12765b805f6a84bcc03db971208 to your computer and use it in GitHub Desktop.

Select an option

Save egarbi/37cab12765b805f6a84bcc03db971208 to your computer and use it in GitHub Desktop.
There is no need to post Debug info and pretty hard for me to extract it but you can see below that after applying
the change for ip4_only = "false" on code you can see this in a second run (terraform plan)
```
# cloudflare_dns_record.cname_records["example.com-www"] will be updated in-place
~ resource "cloudflare_dns_record" "cname_records" {
+ comment_modified_on = (known after apply)
~ created_on = "2025-02-11T10:09:33Z" -> (known after apply)
id = "XXXXXXXXXXXXXXXXXXXXXXX"
~ meta = jsonencode({}) -> (known after apply)
~ modified_on = "2025-09-16T09:00:56Z" -> (known after apply)
name = "www.example.com"
~ proxiable = true -> (known after apply)
~ settings = {
~ flatten_cname = false -> (known after apply)
+ ipv4_only = false
+ ipv6_only = (known after apply)
}
~ tags = [] -> (known after apply)
+ tags_modified_on = (known after apply)
# (5 unchanged attributes hidden)
}
```
So the value of `settings.ip4_only` is never actually set to false and remains null.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment