Comments (3)
resource timeouts are definitely a good idea and not too difficult to implement. retry also sounds like a good idea, except i would probably add a max_retries attribute or something
from terraform-provider-shell.
Thanks for the speedy answer :)
max_retries
seem sensible indeed as a failsafe. I'm not sure how the retry logic intersects with timeouts. IF timeouts are counted against the whole operation - retries included - then max_retries
doesn't add much to safety ; just to expressiveness. I'm not sure the corner cases are worth it. On the other hand, IF timeouts are per-attempt, then max_retries
seems pretty must-have for safety.
In the context of retrying, passing some additional context through the environment could help the script make a better decision on "should we keep trying or not":
TF_SHELL_RETRY_ATTEMPT
: 1 means first attempt, then 2, 3, 4. Conveniently this would allow to implement some flavor of exponential backoff script-side if desired. Also enables script to enforcemax_retries
if so desired (but provides less safety than handling that aspect in the provider).TF_SHELL_RETRY_FIRST_ATTEMPT_TS
: unix timestamp of first attempt. Enables script to give up before timeout if so desired. Convenient to reconcile multiple attempts in logs (barring some kind ofTF_SHELL_INVOCATION_ID
that isn't there either)
from terraform-provider-shell.
What's the actual behavior with timeout, is the go code hardcoded to timeout after 1 minute?
from terraform-provider-shell.
Related Issues (20)
- Facing issues when I use this provider to test locally in my MacBook Air HOT 1
- Error: changes to `lifecycle_commands` and/or `interpreter` should not be follwed by changes to other arguments HOT 4
- It might not even be from this module, I'm trying to follow odd variable behavior.
- Question: What's the best way to force terraform plan to fail on read error?
- Support list/map type for environment argument HOT 2
- Cannot `terraform import` resources HOT 2
- Action should be ActionUpdate in update
- read_error value initializes to null and becomes "" after read causing state change on apply HOT 2
- In windows not working properly
- Permission denied. Error occured during shell execution HOT 1
- There's no option for marking output as sensitive HOT 4
- Provider doesn't perform "update" when i'm changing the update script.
- Update semantics - is there a way to to replay replacement details?
- Not supporting cygwin or mingw-w64 HOT 1
- Can `data` sources have `environment` variables also?
- Add support for inheriting environment variables HOT 1
- Shell script resource to be re-created in each apply
- Provider does not work with terraform refresh
- Document what JSON types are permitted HOT 1
- Data source does not get previous output
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-shell.