-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Ability to add retries on data "aws_lb" #26026
Comments
Hey @domeales-paloit 👋 Thank you for taking the time to raise this! My initial thought is that this could be accomplished by using something like the To expand on this thought, I'm not certain that adding the For tracking: |
Hey @justinretzolk - Thanks for your response! I think that everyone who has had this issue has used either For For With both In regards to your point that the |
This functionality has been released in v4.25.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! |
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. |
Community Note
Description
Terraform is rarely the only system/tool that we use for managing infrastructure and when multiple systems are running independently it can be good to link their processes together. I would like to suggest that aws_lb data resources can have an optional retry period to allow the Terraform apply to "wait" for a resource that is being provisioned by another tool/process.
For my use-case, I am attempting to coordinate the creation of the Route53 record for a Load Balancer that is created by an EKS Service. The process for the deployment of the Ingress controller into EKS (and therefore creation of the Load Balancer) is loosely triggered by the Terraform project, but it is difficult to know when exactly the Load Balancer will be ready. Once the Load Balancer is ready it is easy to configure the Route53 record using the
data "aws_lb"
resource.There can be timeouts for resources, but it seems not yet for data resources.
Using something like
time_sleep
is inefficient since it waits the total time every apply.I would like to add the ability to do retries (via a timeout) on the aws_lb data resource to wait until it is has been provisioned by the parallel process.
New or Affected Resource(s)
Potential Terraform Configuration
Result:
Blocks of type "timeouts" are not expected here.
References
The text was updated successfully, but these errors were encountered: