You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems to me that local variable definitions are not so DRY. For example, in the sample presented here, the reading of env.hcl and the extraction of variable env is repeated in prod/us-east-1/prod/mysql/terragrunt.hcl and non-prod/us-east-1/qa/webserver-cluster/terragrunt.hcl:
locals {
# Automatically load environment-level variablesenvironment_vars=read_terragrunt_config(find_in_parent_folders("env.hcl"))
# Extract out common variables for reuseenv=local.environment_vars.locals.environment
}
Is there no way to put this in the root terragrunt.hcl so that all configurations can reference a single definition of local.env?
The text was updated successfully, but these errors were encountered:
Thank you for Terragrunt. It is a fine tool.
It seems to me that
local
variable definitions are not so DRY. For example, in the sample presented here, the reading ofenv.hcl
and the extraction of variableenv
is repeated inprod/us-east-1/prod/mysql/terragrunt.hcl
andnon-prod/us-east-1/qa/webserver-cluster/terragrunt.hcl
:Is there no way to put this in the root
terragrunt.hcl
so that all configurations can reference a single definition oflocal.env
?The text was updated successfully, but these errors were encountered: