GitHub Action coping Terraform variables across modules
GitHub Action automatically copying variables' definitions from a single file to many modules.
Dockerized as devopsinfra/action-terraform-copy-vars.
Features:
- It's main use will be everywhere where Terraform is used with more than one module in a monorepo.
- Reads file defined with
all_vars_fileand will use whole definitions of variables from it. - For every module matching
dirs_with_moduleswill search files matchingfiles_with_varsand replace matching variables fromall_vars_file. - To not loose the changes combine with my other action devops-infra/action-commit-push.