v0.5.13
Issues | Pull Requests | v0.5.12...v0.5.13 | Base revision
Features
#420 #421 Support setting environment variables in tfaction.yaml
and tfaction-root.yaml
You can configure environment variables in the following places.
- working directory
tfaction.yaml
's*_config
- working directory
tfaction.yaml
- tfaction-root.yaml
target_groups.*_config
- tfaction-root.yaml
target_groups
- tfaction-root.yaml
Environment variables are set by tfaction's setup
action.
e.g.
tfaction.yaml
env: # 2
FOO: foo
terraform_plan_config:
env: # 1
TF_CLI_ARGS_plan: "-parallelism=30"
tfaction-root.yaml
env: # 5
YOO: yoo
target_groups:
- working_directory: github/
env: # 4
BAR: bar
terraform_plan_config:
env: # 3
ZOO: zoo
TF_CLI_ARGS_plan: "-parallelism=20" # overriden
Environment Variables
TF_CLI_ARGS_plan: "-parallelism=30"
FOO: foo
ZOO: zoo
BAR: bar
YOO: yoo
You can confirm environment variables are set from GitHub Actions Web UI.
This feature is especially useful when you want to configure Terraform CLI options per working directory.