Replies: 1 comment 3 replies
-
It's unclear what your I think you might be looking to do something like: # aws/providers.hcl
locals {
region = read_terragrunt_config(find_in_parent_folders("region.hcl")).locals.region
} # aws/main/us-east-1/staging/erp/terragrunt.hcl:
terraform {
source = "git::[email protected]:foo-creative/foo-tf-modules.git//erp"
}
include "root" {
path = find_in_parent_folders("root.hcl")
}
include "providers" {
path = find_in_parent_folders("providers.hcl")
} |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all, I want to use one repo for AWS and Azure. Common stuff in
root.hcl
, cloud-specific stuff inproviders.hcl
etc. The Azure stuff is fine, the problem isaws/providers.hcl
tries to use variables fromroot.hcl
and can't find them. What am I doing wrong? How should I implement this?Beta Was this translation helpful? Give feedback.
All reactions