Re: [terraform] record.# change with existing route 53 text records on import

187 views
Skip to first unread message

Andrew Langhorn

unread,
Sep 28, 2016, 6:50:50 PM9/28/16
to terrafo...@googlegroups.com
As I understand it, the number after records here (it's also in use across other resources in other providers) is basically a way for Terraform to uniquely identify a parameter's value at a point in time; in essence, a version. If you were to change it again, you'd go from starting at records.635621598 to records.SOMETHINGELSE.

So, what it's saying here is that it needs to recreate the _domainkey-company-com-TXT resource, and it looks like it wants to do that because you've tried escaping an extra set of quotation marks wrapping the content of your TXT record. As such, Terraform correctly sees the TXT record has changed in your code base (because, at the end of the day, TXT records in DNS are arbitrary strings, and Terraform doesn't do any computation on them at all, which is the correct behaviour), and wants to then change it in Route 53.

Does that help?

On 28 September 2016 at 00:35, Jeffrey Wong <awo...@gmail.com> wrote:
Hi everyone,

I'm attempting to import my existing aws configuration into terraform, using terraforming, and have a few questions:

on running terraform plan, all the resources do not detect changes as expected, except for route 53 txt records. I see terraform proposing changes like the following:

~ aws_route53_record._domainkey-company-com-TXT
    records.3426984323: "t=y; o=~;" => ""
    records.635621598:  "" => "\"t=y; o=~;\""

The content of the record doesn't appear to be changing at all, but the records.# seems to be changing across all txt records in my existing route53 setup.

I'd expect the route53 records to report back with no changes detected. What is the records.# representing, and what would this change set do?

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Terraform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/542abff5-76b7-41f5-884f-30c179adbf5f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Andrew Langhorn
Senior Site Reliability Engineer
Emailandrew....@thoughtworks.com
Telephone+44 7733 339809
ThoughtWorks
Reply all
Reply to author
Forward
0 new messages