Replies: 1 comment 1 reply
-
Hello, |
Beta Was this translation helpful? Give feedback.
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello. Can't find the cause of the error. Can anyone help?
I have TG project with the following structure
infrastructure-aws/live/eu-central-1/prod/infra/
There I have ecs and elb directories with terragrunt.hcl files
If I run
terragrunt run-all plan --queue-include-external
in infra/elb directory all is ok - no any error outputs
this file has this
_dependency "vpc" {
config_path = "../vpc"
}
include "envcommon" {
path = "${dirname(find_in_parent_folders("root.hcl"))}//live/global/elb.hcl"
}
so all is ok there
now I go to infra/ecs directory and terragrunt.hcl. This file has this piece of code
_dependency "vpc" {
config_path = "../vpc"
}
dependency "elb" {
config_path = "../elb"
}
include "envcommon" {
path = "${dirname(find_in_parent_folders("root.hcl"))}//live/global/ecs.hcl"
}
both files has vpс dependency an they all resolve it correctly that I see in output
But for ecs run, after all vpc outputs have passed and it goes to elb processing I see
This is not related to processing vpc from ecs directory. This is smth wrong with processing vpc from elb terragrunt.hcl that includes //live/_global/ecs.hcl" in which we have
vpc_id = dependency.vpc.outputs.vpc_id
so what is wrong with this processing? Why do I have this error from included elb terragrunt.hcl when I run "plan" from ECS folder and do not have when I run "plan" frm elb folder?
I even tried to replace include this way
for ecs terragrunt.hcl instead of
_path = "${dirname(find_in_parent_folders("root.hcl"))}//live/global/ecs.hcl"
this
_path = "../../../../global/ecs.hcl"
And for elb terragrunt.hcl instead of
_path = "${dirname(find_in_parent_folders("root.hcl"))}//live/global/elb.hcl"
this
_path = "../../../../global/elb.hcl"
The situation is the same. No any errrors in "elb plan" but errors in "ecs plan"
Interesting that the main plan process is not stopped it goes till the end and even when I do apply it applies all the changes (though it outputs the same errors in the console)
Beta Was this translation helpful? Give feedback.
All reactions