forked from gruntwork-io/terragrunt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request gruntwork-io#1062 from gruntwork-io/yori-fix-depen…
…dency-exclude Make include dirs consistent when dependencies are involved
- Loading branch information
Showing
12 changed files
with
202 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
test/fixture-regressions/exclude-dependency/amazing-app/k8s/terragrunt.hcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
include { | ||
path = find_in_parent_folders() | ||
} | ||
|
||
terraform { | ||
source = "${get_terragrunt_dir()}/../../modules/k8s" | ||
} | ||
|
||
dependency "eks" { | ||
config_path = "${get_terragrunt_dir()}/../../clusters/eks" | ||
skip_outputs = true | ||
mock_outputs = { | ||
random_string = "foo" | ||
} | ||
} | ||
|
||
inputs = { | ||
cluster = dependency.eks.outputs.random_string | ||
} |
7 changes: 7 additions & 0 deletions
7
test/fixture-regressions/exclude-dependency/clusters/eks/terragrunt.hcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
include { | ||
path = find_in_parent_folders() | ||
} | ||
|
||
terraform { | ||
source = "${get_terragrunt_dir()}/../../modules/eks" | ||
} |
7 changes: 7 additions & 0 deletions
7
test/fixture-regressions/exclude-dependency/modules/eks/main.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
resource "random_string" "random" { | ||
length = 16 | ||
} | ||
|
||
output "random_string" { | ||
value = random_string.random.result | ||
} |
2 changes: 2 additions & 0 deletions
2
test/fixture-regressions/exclude-dependency/modules/k8s/main.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
variable "cluster" {} | ||
output "cluster" { value = var.cluster } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Intentionally empty |
19 changes: 19 additions & 0 deletions
19
test/fixture-regressions/exclude-dependency/testapp/k8s/terragrunt.hcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
include { | ||
path = find_in_parent_folders() | ||
} | ||
|
||
terraform { | ||
source = "${get_terragrunt_dir()}/../../modules/k8s" | ||
} | ||
|
||
dependency "eks" { | ||
config_path = "${get_terragrunt_dir()}/../../clusters/eks" | ||
skip_outputs = true | ||
mock_outputs = { | ||
random_string = "foo" | ||
} | ||
} | ||
|
||
inputs = { | ||
cluster = dependency.eks.outputs.random_string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters