Terraform: resource/aws_route53_record: Plan shows pending changes when nothing changed

Created on 23 Jun 2016  ยท  2Comments  ยท  Source: hashicorp/terraform

Terraform Version

Terraform v0.6.16

Affected Resource(s)

  • aws_route53_record

    Terraform Configuration Files

resource "aws_route53_record" "foo-example-com-A" {
    zone_id = "ZREDACTED"
    name    = "foo.example.com"
    type    = "A"

    alias {
        name    = "dualstack.redacted.us-east-1.elb.amazonaws.com"
        zone_id = "ZREDACTED"
        evaluate_target_health = false
    }
}

Expected Behavior

If the configuration is not changed between Terraform runs, no pending changes should be reported by terraform plan.

Actual Behavior

Running terraform plan results in the following output:

~ aws_route53_record.foo-example-com-A
    alias.3007436033.evaluate_target_health: "" => "false"
    alias.3007436033.name:                   "" => "dualstack.redacted.us-east-1.elb.amazonaws.com"
    alias.3007436033.zone_id:                "" => "ZREDACTED"
    alias.3868099092.evaluate_target_health: "false" => "false"
    alias.3868099092.name:                   "dualstack.redacted.us-east-1.elb.amazonaws.com." => ""
    alias.3868099092.zone_id:                "ZREDACTED" => ""

Steps to Reproduce

  1. Apply the initial version of the resource with terraform apply.
  2. Run terraform plan.
bug provideaws

Most helpful comment

Hi @jimmycuadra

Apologies this is affecting you. Just to let you know, a fix has been merged to 0.7 branch:

provider/aws: Trim trailing . from name in aws_route53_record resources to prevent spurious diffs [GH-6592]

This will be released soon.

Paul

All 2 comments

Hi @jimmycuadra

Apologies this is affecting you. Just to let you know, a fix has been merged to 0.7 branch:

provider/aws: Trim trailing . from name in aws_route53_record resources to prevent spurious diffs [GH-6592]

This will be released soon.

Paul

I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rjinski picture rjinski  ยท  3Comments

pawelsawicz picture pawelsawicz  ยท  3Comments

thebenwaters picture thebenwaters  ยท  3Comments

carl-youngblood picture carl-youngblood  ยท  3Comments

rkulagowski picture rkulagowski  ยท  3Comments