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
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 use generate block to generate auto.tfvars file.
in the TF code I reference alb.vpc_id, when i want to use vpc_id.
When i run terragrunt run-all apply from the root of the folder , it applies vpc and then alb but the vpc_id value is always coming as mock_vpc_id and not the actual vpc_id output.
If i first run terragrunt apply from VPC, and then run terragrunt apply from alb separaterly, it works.
The backend configuration is as below:
For VPC and ALB, it will be different workspaces.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
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.
Tracked in ticket #111124
Beta Was this translation helpful? Give feedback.
All reactions