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
[FEATURE] Allow use of env variables inside in stacks too #1384
Comments
Hi @vikas027, Thanks for requesting this. We have item on our product roadmap to make environment variables configurable for stacks similarly to the existing runtime configuration. QQ: Would you expect those environment variables to be inherited and available for all nested stacks as well? Thank You |
Hey @soerenmartius , Yes, it would be good to inherit an environment variable and inherit it in all stacks. This will be helpful in my situation where I want to keep the code DRY in a multi-account / region setup. |
That makes sense, thanks for your feedback! I'll discuss this with the team and get back to you. |
Hi @vikas027, So we planned the following change in defining the run time environment: We will allow to set
Before we start, could you confirm if this would solve your problem? |
@mariux the |
Using Perhaps we could think about adding |
Is your feature request related to a problem? Please describe.
I am working on Azure and have a multi-subscription architecture. If I am sitting on root and I run
terramate run terraform init
command, it traverses down to each directory and executes the command.For example, if my stack structure is like below, I want to use environment variables (
ARM_SUBSCRIPTION_ID
,ARM_TENANT_ID
,ARM_CLIENT_ID
andARM_CLIENT_SECRET
) specific to an environment.Describe the solution you'd like
Any way of picking environment variables would be good, maybe something like this
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
As of now, I am using these commands to individually run each of the stacks after setting up AZ subscription
The text was updated successfully, but these errors were encountered: