Replies: 1 comment
-
Hi,
https://terragrunt.gruntwork.io/docs/reference/config-blocks-and-attributes/#dependency |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Team,
Trying to get TG work with TFE, especially for dependencies.
I am aware that with TFE, the standard
input
way of terragrunt does'nt work so have to usegenerate
block to generateauto.tfvars
file.Here is my structure
Module
alb
depends onvpc
for itsvpc.id
The
alb/_dependencies.hcl
isThen to use these
var
, i havealb/terragrunt.hcl
in the TF code I reference
alb.vpc_id
, when i want to usevpc_id
.When i run
terragrunt run-all apply
from the root of the folder , it appliesvpc
and thenalb
but thevpc_id
value is always coming asmock_vpc_id
and not the actualvpc_id
output.If i first run
terragrunt apply
from VPC, and then runterragrunt apply
from alb separaterly, it works.The backend configuration is as below:
For VPC and ALB, it will be different workspaces.
Beta Was this translation helpful? Give feedback.
All reactions