Optum / runiac

Run IaC Anywhere With Ease
https://runiac.io
Apache License 2.0
20 stars 19 forks source link

Regional steps output variables availability #43

Open cghanapu opened 2 years ago

cghanapu commented 2 years ago

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"

tiny-dancer commented 2 years ago

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?

cghanapu commented 2 years ago

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

tiny-dancer commented 2 years ago

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