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

Changing name of "A" record is incorrect #11156

Closed
gorlovjob opened this issue Dec 5, 2019 · 2 comments
Closed

Changing name of "A" record is incorrect #11156

gorlovjob opened this issue Dec 5, 2019 · 2 comments
Labels
service/route53 Issues and PRs that pertain to the route53 service.

Comments

@gorlovjob
Copy link

Terraform Version

Terraform v0.12.17

AWS_provider Version

aws_v2.41.0_x4

Affected Resource(s)

  • aws_route53_record

Terraform Configuration Files

resource "aws_route53_zone" "private" {
  name = var.domain_name
  vpc {
    vpc_id = var.vpc_id
  }
  comment = var.comment
  force_destroy = true
  tags = var.tags
}

resource "aws_route53_record" "www" {
  count       = length(var.records)
  zone_id = aws_route53_zone.private.zone_id
  name    = var.records.*.hostname[count.index]
  type    = var.records.*.type[count.index]
  ttl     = var.records.*.ttl[count.index]
  records = [var.records.*.ip[count.index]]

  depends_on = [aws_route53_zone.private]
}
# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key: https://keybase.io/hashicorp

Debug Output

Panic Output

Expected Behavior

I created "A" record. In AWS web console I saw it. Now I want change name the record. Terraform have to delete old record and create new.

Actual Behavior

Terraform work without problem: old record deleted, new record created, but in AWS web console I see and new, and old record.

Steps to Reproduce

  1. Create "A" record throught terraform.
  2. Change name of "A" record in terraform file.
  3. Terraform apply.
  4. Look in AWS web console.
@ghost ghost added the service/route53 Issues and PRs that pertain to the route53 service. label Dec 5, 2019
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Dec 5, 2019
@gorlovjob gorlovjob changed the title Changeing name of "A" record is incorrect Changing name of "A" record is incorrect Dec 5, 2019
@bflad
Copy link
Contributor

bflad commented Dec 5, 2019

Hi @gorlovjob 👋 Thank you for reporting this and sorry you ran into trouble. This appears to be very similar in nature or a duplicate to #9024, so to consolidate any efforts and discussions on this issue, I'm going to close this issue in preference of the existing one.

@bflad bflad closed this as completed Dec 5, 2019
@ghost
Copy link

ghost commented Mar 28, 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 28, 2020
@breathingdust breathingdust removed the needs-triage Waiting for first response or review from a maintainer. label Sep 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/route53 Issues and PRs that pertain to the route53 service.
Projects
None yet
Development

No branches or pull requests

3 participants