hashicorp / terraform-provider-dyn

Terraform Dyn provider. Please note: This Terraform provider is archived per our provider archiving process: https://terraform.io/docs/internals/archiving.html
https://registry.terraform.io
Mozilla Public License 2.0
7 stars 16 forks source link

dyn_records making unnecessary changes with fqdn values #1

Closed hashibot closed 6 years ago

hashibot commented 7 years ago

This issue was originally opened by @kevinlondon as hashicorp/terraform#5192. It was migrated here as part of the provider split. The original body of the issue is below.


It seems like using a fully qualified domain name as input for a record is causing an issue with Dyn where it thinks it has to reapply it every time because Dyn truncates the period at the end of the record.

Terraform setup:

resource "dyn_record" "www" {
    zone = "${var.dns_zone}"
    name = "${var.env}"
    type = "CNAME"
    value = "${dyn_record.web.fqdn}"
}

Output from runs:

$ terraform apply
module.dyndns.dyn_record.www: Modifying...
  value: "web1-qa.site.com." => "web1-qa.site.com"
. . .

$ terraform plan -module-depth=-1
~ module.dyndns.dyn_record.www
    value: "web1-qa.site.com." => "web1-qa.site.com"
. . .