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

Default TTL always flagged as change #11

Closed ipmb closed 6 years ago

ipmb commented 7 years ago

Terraform Version

Terraform v0.10.4

Affected Resource(s)

dyn_record

Terraform Configuration Files

resource "dyn_record" "www_example_com" {
  zone  = "example.com"
  name  = "www"
  value = "127.0.0.1"
  type  = "A"
}

Expected Behavior

After initial creation, the resource should not be flagged for a change on subsequent runs.

Actual Behavior

An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  ~ dyn_record.www_example_com
      ttl: "300" => "0"

Plan: 0 to add, 1 to change, 0 to destroy.

Steps to Reproduce

terraform apply && terraform plan

Important Factoids

300 is the default TTL set in Dyn. Nothing is actually changed despite it being flagged for a change.