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
Uh oh!
There was an error while loading. Please reload this page.
-
Team,
Trying to get TG work with TFE, especially for dependencies.
I am aware that with TFE, the standard
inputway of terragrunt does'nt work so have to usegenerateblock to generateauto.tfvarsfile.Here is my structure
Module
albdepends onvpcfor itsvpc.idThe
alb/_dependencies.hclisThen to use these
var, i havealb/terragrunt.hclin the TF code I reference
alb.vpc_id, when i want to usevpc_id.When i run
terragrunt run-all applyfrom the root of the folder , it appliesvpcand thenalbbut thevpc_idvalue is always coming asmock_vpc_idand not the actualvpc_idoutput.If i first run
terragrunt applyfrom VPC, and then runterragrunt applyfrom 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