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
We're testing terragrunt-atlantis-config with the intention of using it with Atlantis but am having a strange issue where ENV vars are not being found.
When running terragrunt-atlantis-config generate --output atlantis.yaml --autoplan --parallel --root core/eks_main/, terragrunt-atlantis-config fails to find any environment variable that has been defined in terragrunt.hcl.
The error outputted is:
[root@ terraform]$ terragrunt-atlantis-config generate --output atlantis.yaml --autoplan --parallel --root core/eks_main/
ERRO[0000] Error: Error in function call
ERRO[0000] on /terraform/core/terragrunt.hcl line 3, in locals:
ERRO[0000] 3: environment = get_env("OP_TF_ENV")
ERRO[0000]
ERRO[0000] Call to function "get_env" failed: EnvVarNotFound: Required environment variable OP_TF_ENV - not found.
ERRO[0000] Encountered error while evaluating locals.
ERRO[0000] Error: Error in function call
ERRO[0000] on /terraform/core/terragrunt.hcl line 3, in locals:
ERRO[0000] 3: environment = get_env("OP_TF_ENV")
ERRO[0000]
ERRO[0000] Call to function "get_env" failed: EnvVarNotFound: Required environment variable OP_TF_ENV - not found.
ERRO[0000] Encountered error while evaluating locals.
ERRO[0000] Error: Error in function call
ERRO[0000] on /terraform/core/terragrunt.hcl line 4, in locals:
ERRO[0000] 4: application = get_env("OP_TF_APP")
When eching the env vars in the shell I'm able to see them all e.g:
Hi. I'm having exactly the same issue. I would prefer not to reorganize all environment variables because it means a huge effort. Why doesn't it fail in inputs and it fails in locals?
We're testing terragrunt-atlantis-config with the intention of using it with Atlantis but am having a strange issue where ENV vars are not being found.
When running
terragrunt-atlantis-config generate --output atlantis.yaml --autoplan --parallel --root core/eks_main/
,terragrunt-atlantis-config
fails to find any environment variable that has been defined interragrunt.hcl
.The error outputted is:
When eching the env vars in the shell I'm able to see them all e.g:
The locals defined in
/terraform/core/terragrunt.hcl
look like this:core/eks_main/terragrunt.hcl
looks like:Am I doing something wrong with this configuration?
The text was updated successfully, but these errors were encountered: