-
Notifications
You must be signed in to change notification settings - Fork 45
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
TXT records always require re-creation v 2.0.0-rc1 #40
Comments
I have since realised that you can add embedded quotes for this but I find it a bit unintuitive that this is required seeing as the record is obviously meant to accept text content. |
I can confirm I have the same issue with |
Similar case. Also similar to #2.
In addition, with terraform 1.0.2, it adds a warning on the Unless you have made equivalent changes to your configuration, or ignored the relevant attributes using ignore_changes, the following plan may include actions to undo or respond to these changes. The warning is worrying. When checking the zone on Gandi, however after the
If there is no envisioned solution, as the existence of the problem since #2 suggests, maybe the docs could add a note not to worry about these ? |
Actually, I noticed that using the following format, there is no longer an issue with TF 1.0.4 and the latest Gandi provider: resource "gandi_livedns_record" "txt" {
zone = data.gandi_domain.domain.id
name = "@"
type = "TXT"
ttl = module.defaults.ttl_txt
values = [
"\"facebook-domain-verification=fbvalue\"",
"\"google-site-verification=googlevalue\"",
"\"keybase-site-verification=keybasevalue"",
]
} |
I assume this is no longer an issue? |
@robbyoconnor I'm due for a TF and Gandi provider upgrade. If/when I do that, I'll post my results. |
I have ran into this issue too. As long as you quote the values, this is not an issue. I suppose this could be fixed more gracefully by normalizing a bit. This would fix #41 too. For me, it works good enough and I won't propose a fix myself. |
Inspired by the comments in: go-gandi/terraform-provider-gandi#40
Creating a TXT record works but attempting to plan immediately afterwards indicates that changes are required.
This appears to be due to quote-handling.
Example output after having already created the record successfully;
The text was updated successfully, but these errors were encountered: