-
Notifications
You must be signed in to change notification settings - Fork 9k
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
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
|
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: