runiac icon indicating copy to clipboard operation
runiac copied to clipboard

Regional steps output variables availability

Open cghanapu opened this issue 4 years ago • 3 comments

We have a scenario where we need to access regional step's output named 'foo' in the following step which runs only in primary region. It would be handy if we can get hold of collection of 'foo' output variable generated from each regional step or output prefixed with region name and passed on to following step.

Ex:- stepname_foo = ['bar','bar2'] Ex:- stepname_regionname_foo = "bar"

cghanapu avatar Nov 04 '21 15:11 cghanapu

This wouldn't be possible in current flow as all primary step deployments execute prior to the first regional step deployment.

What is the use case?

tiny-dancer avatar Nov 05 '21 03:11 tiny-dancer

Agreed! We want to use the output variables generated in regional step in the next step but not in the same step.
For instance, step1(foo) regional output variables availability in step2 (bar).

├── step1_foo ├──--- regional ├──--------.tf ├── step2_bar ├──------.tf

cghanapu avatar Nov 05 '21 04:11 cghanapu

Do you mind sharing the use case in regards to what you are trying to accomplish from a cloud perspective?

tiny-dancer avatar Nov 05 '21 04:11 tiny-dancer