Skip to content
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

Long TXT records always require re-creation v 2.0.0-rc1 #41

Open
wiggly opened this issue Aug 1, 2020 · 0 comments
Open

Long TXT records always require re-creation v 2.0.0-rc1 #41

wiggly opened this issue Aug 1, 2020 · 0 comments

Comments

@wiggly
Copy link

wiggly commented Aug 1, 2020

So, for TXT records over a certain length DNS requires them to be split and the record comes back split from the GANDI API.

This means that for things like DKIM records, even if you add quotes into the string the resource always appears to require re-creation.

Example record with dummy data to show the TF outut on plan;

  # gandi_livedns_record.test_long_txt_menutia_io will be updated in-place
  ~ resource "gandi_livedns_record" "test_long_txt_menutia_io" {
        id     = "menutia.io/_long_text/TXT"
        name   = "_long_text"
        ttl    = 3600
        type   = "TXT"
      ~ values = [
          - "\"012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789\" \"01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789\"",
          + "\"01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789\"",
        ]
        zone   = "menutia.io"
    }
@wiggly wiggly changed the title Long TXT records always require re-creation Long TXT records always require re-creation v 2.0.0-rc1 Aug 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant