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

retry option for data sources #114

Closed
muang0 opened this issue Nov 4, 2020 · 3 comments
Closed

retry option for data sources #114

muang0 opened this issue Nov 4, 2020 · 3 comments

Comments

@muang0
Copy link

muang0 commented Nov 4, 2020

Hi all, I am posting here to gauge interest in a potential feature.

Our use case: We are creating a load balancer via k8s ingress controller, and need to use its a record set in the same module. The record takes time to propagate, which leads to an unresolved error.

I am thinking-- could we add an argument to the data source to retry the dns resolution over a specified period?

--Thanks for the response! 😄

@shashiverma19
Copy link

We can use local exec with sleep to wait for specified time.
However that does not guarantee that ALB A record will be available within that time frame.

How to wait and retry until data source is available ??

@muang0
Copy link
Author

muang0 commented Nov 4, 2020

Could have as another arg, or even -1 value for retry time arg. Just thinking out loud here.

And yes, local exec could work-- but the downside in my mind is that its a less clean solution, and adds reliance outside terraform since local exec would run on the native system.

Copy link

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants