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_record alias keeps being recreated when elb dns_name is not entirely lowercase #1005

Closed
blckct opened this issue Jun 29, 2017 · 6 comments · Fixed by #3119
Closed
Labels
bug Addresses a defect in current functionality. service/route53 Issues and PRs that pertain to the route53 service.
Milestone

Comments

@blckct
Copy link
Contributor

blckct commented Jun 29, 2017

Terraform Version

v0.9.8

Affected Resource(s)

  • aws_route53_record
  • aws_elb.

Terraform Configuration Files

resource "aws_route53_zone" "internal" {
  name = "elbtest.deleteme"
}

resource "aws_elb" "lb" {

  availability_zones=["eu-west-1a"]
  name = "Test"

  "listener" {
    instance_port = 80
    instance_protocol = "HTTP"
    lb_port = 80
    lb_protocol = "HTTP"
  }
}

// Attach the ELB to domain
resource "aws_route53_record" "elb" {
  name = "test.elbtest.deleteme"
  type = "A"
  zone_id = "${aws_route53_zone.internal.zone_id}"
  alias {
    evaluate_target_health = true
    name = "${aws_elb.lb.dns_name}"
    zone_id = "${aws_elb.lb.zone_id}"
  }
}

Expected Behavior

The alias shouldn't be changed since nothing really changed

Actual Behavior

The record gets replaced every time

@stack72 stack72 added the bug Addresses a defect in current functionality. label Jul 7, 2017
@ColinHebert
Copy link
Contributor

Probably relates to #1700

@saxonww
Copy link

saxonww commented Jan 10, 2018

FWIW, changing ${aws_elb.lb.dns_name} to ${lower(aws_elb.lb.dns_name)} in the above example will work around this issue.

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

bflad commented Jan 24, 2018

I have submitted a PR to hopefully fix this: #3119

@bflad bflad added this to the v1.8.0 milestone Jan 25, 2018
@bflad
Copy link
Contributor

bflad commented Jan 25, 2018

The fix for this has been merged into master and will be released in v1.8.0 of the provider, expected tomorrow! 🎉

@bflad
Copy link
Contributor

bflad commented Jan 29, 2018

This has been released in terraform-provider-aws version 1.8.0. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

@ghost
Copy link

ghost commented Apr 8, 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 Apr 8, 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

Successfully merging a pull request may close this issue.

5 participants