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

AWS Route53 alias record will be imported with TTL #65

Closed
chroju opened this issue May 11, 2019 · 2 comments
Closed

AWS Route53 alias record will be imported with TTL #65

chroju opened this issue May 11, 2019 · 2 comments

Comments

@chroju
Copy link

chroju commented May 11, 2019

AWS Route53 alias record will be imported to route53_record.tf like below.

resource "aws_route53_record" "AAAAAAAAA_example-net-_A" {
  alias {
    evaluate_target_health = false
    name                   = "example.net"
    zone_id                = "AAAAAAAAA"
  }

  name    = "example.net"
  ttl     = "0"
  type    = "A"
  zone_id = "${aws_route53_zone.example-net.zone_id}"
}

However, ttl is not required for alias record.
cf: AWS: aws_route53_record - Terraform by HashiCorp

@sergeylanzman
Copy link
Collaborator

I think you got error about Conflicts with alias
https://github.com/terraform-providers/terraform-provider-aws/blob/e5073b94c8469d18fefc8382e8b0fd20334621b1/aws/resource_aws_route53_record.go#L83

It's know issue(#25) terraformer can't get today details about each field.
Best solution today know delete ttl = "0" from tf files and run terraform plan.

@chroju
Copy link
Author

chroju commented May 13, 2019

It's know issue(#25) terraformer can't get today details about each field.

Exactly. I understand that this issue is to be solved in #25 . Thanks.

@chroju chroju closed this as completed May 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants