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

Terraform bug impacting deployments #235

Open
dav3r opened this issue Sep 11, 2019 · 0 comments
Open

Terraform bug impacting deployments #235

dav3r opened this issue Sep 11, 2019 · 0 comments
Labels
bug This issue or pull request addresses broken functionality

Comments

@dav3r
Copy link
Member

dav3r commented Sep 11, 2019

🐛 Bug Report

There is currently a bug in Terraform (as of 0.12.7) that is preventing route53 (DNS) records from being deleted when a "fresh" DNS record needs to be created. This results in multiple route53 records (with different IP addresses) for the same domain.

The current workaround is to manually delete the outdated route53 records.

To Reproduce

Steps to reproduce the behavior:

  • Any terraform apply that causes the replacement of a route53 record set

Expected behavior

The old route53 record should be deleted by terraform before it creates the new record.

Any helpful log output

❱ terraform apply
...
  # aws_route53_record.cyhy_rev_dashboard_PTR must be replaced
-/+ resource "aws_route53_record" "cyhy_rev_dashboard_PTR" {
...
}
...
aws_route53_record.cyhy_rev_dashboard_PTR: Destroying... [id=Z2AINF9RNTYH7J_101.10.10.10.in-addr.arpa._PTR]
...
aws_route53_record.cyhy_rev_dashboard_PTR: Destruction complete after 0s
# LIES!!!  The record above still exists! :(
...
aws_route53_record.cyhy_rev_dashboard_PTR: Creating...
aws_route53_record.cyhy_rev_dashboard_PTR: Creation complete after 46s [id=Z2AINF9RNTYH7J_38.10.10.10.in-addr.arpa._PTR]
# TRUTH!
@dav3r dav3r added the bug This issue or pull request addresses broken functionality label Sep 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue or pull request addresses broken functionality
Projects
None yet
Development

No branches or pull requests

1 participant