-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
[Bug]: aws_route53_record
fails when ttl
is set to 0
#36411
[Bug]: aws_route53_record
fails when ttl
is set to 0
#36411
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
aws_route53_record
fails when ttl
is set to 0
I went to tackle this one (as I was looking for a simple issue to be my first contribution), but my acceptance test didn't pass (with same error). I wonder whether it is possible to achieve this without the plugin framework? (Instead of sdkv2). |
@hugo-barros thank you for your effort |
just to add that this makes usage of weighted DNS extremely annoying, as it force me to manual change the ttl from zero to 1 to add any new entry, and them manually reset them back to zero
|
i upgraded to v5.70. and this still exists in the latest version |
Issue hashicorp#36411 aws_route53_record fails when ttl is set to 0
Warning This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
This functionality has been released in v5.73.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
confirmed fixed with 5.73.0, i can create/update records with TTL=0 |
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. |
Terraform Core Version
v1.4.6
AWS Provider Version
v5.40.0
Affected Resource(s)
aws_route53_record
Expected Behavior
When ttl = 0 (zero), the resource should be created, just in line as the AWS route53 console
Actual Behavior
Error, no resource created, while the plan show OK
Can't recreate via terraform a record created manually in the AWS console
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Create the tf to create a route53 record, with TTL = 0
try to apply the terraform
it should fail.
change the TTL> 0
apply the terraform
it should work now
Debug Output
No response
Panic Output
No response
Important Factoids
The AWS console didn't allow TTL in the past, but now it do allows and TTL= 0 is usefull for internal zones, as a weak load balancer, namely for RDS replica with healthchecks (route53_healthchecks), to add or remove replicas based on several checks. For that, we do not want cached results, as that may negate the healtcheck objective
References
No response
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: