-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
NS error when creating new zone #8598
Comments
Hi @ata-sql 👋 Thanks for reporting this and sorry you are running into trouble here. In version 2.0.0+ of the Terraform AWS Provider, the
The good news here is that we do have an resource "aws_route53_record" "my-ns-record" {
allow_overwrite = true
zone_id = "${aws_route53_zone.my-zone.zone_id}"
name = "my.zone"
type = "NS"
ttl = "3600"
records = [
"${aws_route53_zone.my-zone.name_servers.0}",
"${aws_route53_zone.my-zone.name_servers.1}",
"${aws_route53_zone.my-zone.name_servers.2}",
"${aws_route53_zone.my-zone.name_servers.3}"
]
} Hope this helps! |
This isn't really an acceptable answer. |
Yup, just spent into the long small hours until seeing this post :( Thanks @SwitchedToGitlab |
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! |
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Output
Reported change:
https://gist.github.com/ata-sql/a8f334124118d3c7b64af03f26718b0b
After apply:
Expected Behavior
Nothing should happen, since terraform creates NS records when creating zone and it should be detected. It happend like that before. Don't remember when last time I created zone with terraform and it worked fine (we have 20+ zones created same way), but first wrong behaviour was about 40-50 days ago.
Actual Behavior
after each apply command, terraform "sees" new dns record and tries to create it. It fails, don't spoil anything, but reports each time.
Steps to Reproduce
Create zone with NS record (as described above) and run
terraform apply
The text was updated successfully, but these errors were encountered: