-
-
Notifications
You must be signed in to change notification settings - Fork 966
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize dependency output retrieval
- Loading branch information
1 parent
2c8c2d3
commit 0bf8185
Showing
11 changed files
with
224 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
output "output" { | ||
value = "The answer is 42" | ||
} |
1 change: 1 addition & 0 deletions
1
test/fixture-get-output/nested-optimization/deepdep/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 @@ | ||
# Intentionally empty. |
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,4 @@ | ||
variable "input" {} | ||
output "output" { | ||
value = "No, ${var.input}" | ||
} |
12 changes: 12 additions & 0 deletions
12
test/fixture-get-output/nested-optimization/dep/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,12 @@ | ||
include { | ||
path = find_in_parent_folders() | ||
} | ||
|
||
# Retrieve a dependency. In the test, we will destroy this state and verify we can still get the output. | ||
dependency "deepdep" { | ||
config_path = "../deepdep" | ||
} | ||
|
||
inputs = { | ||
input = dependency.deepdep.outputs.output | ||
} |
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,4 @@ | ||
variable "input" {} | ||
output "output" { | ||
value = "They said, \"${var.input}\"" | ||
} |
8 changes: 8 additions & 0 deletions
8
test/fixture-get-output/nested-optimization/live/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,8 @@ | ||
# Retrieve a dependency. In the test, we will destroy this state and verify we can still get the output. | ||
dependency "dep" { | ||
config_path = "../dep" | ||
} | ||
|
||
inputs = { | ||
input = dependency.dep.outputs.output | ||
} |
16 changes: 16 additions & 0 deletions
16
test/fixture-get-output/nested-optimization/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,16 @@ | ||
# Configure Terragrunt to automatically store tfstate files in an S3 bucket | ||
remote_state { | ||
backend = "s3" | ||
config = { | ||
encrypt = true | ||
bucket = "__FILL_IN_BUCKET_NAME__" | ||
key = "${path_relative_to_include()}/terraform.tfstate" | ||
region = "us-west-2" | ||
dynamodb_table = "__FILL_IN_LOCK_TABLE_NAME__" | ||
enable_lock_table_ssencryption = true | ||
} | ||
generate = { | ||
path = "backend.tf" | ||
if_exists = "overwrite" | ||
} | ||
} |
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