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

Route53 Alias records modify on each terraform apply. #1700

Closed
shadycuz opened this issue Sep 19, 2017 · 4 comments
Closed

Route53 Alias records modify on each terraform apply. #1700

shadycuz opened this issue Sep 19, 2017 · 4 comments
Labels
bug Addresses a defect in current functionality. service/route53 Issues and PRs that pertain to the route53 service.

Comments

@shadycuz
Copy link
Contributor

shadycuz commented Sep 19, 2017

Terraform Version

Terraform v0.10.6

Affected Resource(s)

Please list the resources as a list, for example:

  • aws_route53_record

If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.

Terraform Configuration Files

resource "aws_route53_record" "mywebsite" {
  zone_id = "${data.aws_route53_zone.k8.zone_id}"
  name    = "mywebsite.mydomain.com"
  type    = "A"

  alias {
    name                   = "${element(values(data.kubernetes_service.external-nginx.load_balancer_ingress[0]), 0)}"
    zone_id                = "${data.aws_elb_hosted_zone_id.elb.id}"
    evaluate_target_health = true
  }
}

Debug Output

Panic Output

If Terraform produced a panic, please provide a link to a GitHub Gist containing the output of the crash.log.

Expected Behavior

Terraform should create the record once and afterwards running terraform plan should show no changes.

Actual Behavior

Terraform plan always will show my Alias Records going from "true" to "false" but these changes are not made to route53.

  ~ aws_route53_record.mywebsite
      alias.2441962247.evaluate_target_health:  "true" => "false"
      alias.2441962247.name:                    "a345acf5f971211e790850afbb860d2a-245820010.us-west-2.elb.amazonaws.com" => ""
      alias.2441962247.zone_id:                 "Z1H1FL5HABSF5" => ""
      alias.~2595901456.evaluate_target_health: "" => "true"
      alias.~2595901456.name:                   "" => "${element(values(data.kubernetes_service.external-nginx.load_balancer_ingress[0]), 0)}"
      alias.~2595901456.zone_id:                "" => "Z1H1FL5HABSF5"

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply
  2. terraform plan
  3. terraform apply
  4. terraform plan see what I'm getting at?

Important Factoids

References

@ColinHebert
Copy link
Contributor

Relates to #306

@shadycuz
Copy link
Contributor Author

shadycuz commented Jan 4, 2018

@ColinHebert You are correct, I will try to get around to looking into it this weekend. I'm guessing it's still relevant.

@bflad bflad added the service/route53 Issues and PRs that pertain to the route53 service. label Jan 19, 2018
@shadycuz
Copy link
Contributor Author

stale

@ghost
Copy link

ghost commented Mar 27, 2020

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/route53 Issues and PRs that pertain to the route53 service.
Projects
None yet
Development

No branches or pull requests

4 participants