Closed Priyanka-Chatterjee-2000 closed 6 months ago
Will be done as part of v0.3.0
Current beta: https://github.com/turbot/flowpipe/releases/tag/v0.3.0-beta.202402130018 supports this feature.
This is now supported as part of https://flowpipe.io/docs/flowpipe-hcl/step#common-step-arguments
Hi , I was trying to create multiple (100) GCP storage buckets using flowpipe, I could think of two ways to do it:
Using
for_each
: With this 100 container spun up at an instant in parallel clogging up all my system resources and eventually leading to a shutdown. So to tackle this issue I tried the second approach.Using
loop
: We can make synchronous repeat calls to a step until a certain condition evaluates to true . As per the documentation, I should be able to overwrite the arguments in any kind of step, the example also shows the same about a http step. However in a pipeline step, I cannot seem to overwrite the"args"
argument and it complains about this error::link: Link to my code
Suggestions from @e-gineer : We should support both. I think for_each is the better approach … and for that to work we should support limits on containers. I think we should have two limits we respect: