Configure Environment Variables
The env section defines environment variables that are set when executing your components. Environment variables can be configured at the global level, component-type level, or component level, and are deep-merged across the inheritance chain.
Use Casesβ
- Cloud Provider Configuration: Set
AWS_PROFILE,AWS_REGION, or other provider-specific environment variables. - Terraform Debugging: Enable
TF_LOGfor debugging orTF_CLI_CONFIG_FILEfor custom CLI configuration. - Tool Configuration: Configure paths and settings for external tools used by your components.
- Secrets Injection: Pass secrets from environment to components (though consider using auth for credentials).