I'm trying to work out my AWS infrastructure and have the following structure:
regions
└── us-east-2_Ohio
├── terragrunt.hcl
├── variables.tf
└── vpcs
├── myVPC
├── terragrunt.hcl
├── variables.tf
└── vpc.tf
In the variables.tf at the us-east-2_Ohio
level I have the provider and region set:
provider "aws" {
region = "us-east-2"
}
When I run terragrunt plan-all, I get prompted by the myVPC module for provider.aws.region
by the vpc module. I'd like to have that be passed from the parent module, but no matter what I try it won't work. Either it complains the block type is not expected or that the target module has not been applied. I even created a main.tf at the us-east-2_Ohio
that only has
output "provider_region" {
value = "us-east-2a"
}
and that didn't work.
Any suggestions would be greatly appreciated.
Thanks