-
-
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.
Merge pull request #898 from gruntwork-io/yori-change-order
Change order of parsing so that include is parsed first
- Loading branch information
Showing
9 changed files
with
73 additions
and
49 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
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 |
---|---|---|
@@ -1,8 +1,10 @@ | ||
terraform { | ||
backend "s3" {} | ||
variable "parent_terragrunt_dir" {} | ||
variable "terragrunt_dir" {} | ||
|
||
output "parent_terragrunt_dir" { | ||
value = var.parent_terragrunt_dir | ||
} | ||
|
||
# Create an arbitrary local resource | ||
data "template_file" "test" { | ||
template = "Hello, I am a template." | ||
output "terragrunt_dir" { | ||
value = var.terragrunt_dir | ||
} |
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 |
---|---|---|
@@ -1,7 +1,3 @@ | ||
locals { | ||
parent_path = find_in_parent_folders() | ||
} | ||
|
||
include { | ||
path = local.parent_path | ||
path = find_in_parent_folders() | ||
} |
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 |
---|---|---|
@@ -1,10 +1,9 @@ | ||
# 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" | ||
} | ||
locals { | ||
parent_terragrunt_dir = get_parent_terragrunt_dir() | ||
terragrunt_dir = get_terragrunt_dir() | ||
} | ||
|
||
inputs = { | ||
parent_terragrunt_dir = local.parent_terragrunt_dir | ||
terragrunt_dir = local.terragrunt_dir | ||
} |
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