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
-
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.
Tracked in ticket #111124
Beta Was this translation helpful? Give feedback.
All reactions