-
Notifications
You must be signed in to change notification settings - Fork 79
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 #17 from gruntwork-io/tf12
Tf12 Upgrade
- Loading branch information
Showing
44 changed files
with
623 additions
and
290 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,3 +1,3 @@ | ||
output "path" { | ||
value = "${module.path.path}" | ||
value = module.path.path | ||
} |
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,9 +1,13 @@ | ||
terraform { | ||
required_version = ">= 0.12" | ||
} | ||
|
||
module "list_remove" { | ||
# When using these modules in your own templates, you will need to use a Git URL with a ref attribute that pins you | ||
# to a specific version of the modules, such as the following example: | ||
# source = "git::[email protected]:gruntwork-io/package-terraform-utilities.git//modules/list-remove?ref=v0.0.8" | ||
source = "../../modules/list-remove" | ||
|
||
original_list = ["${var.input_list}"] | ||
items_to_remove = ["${var.items_to_remove}"] | ||
original_list = var.input_list | ||
items_to_remove = var.items_to_remove | ||
} |
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,7 @@ | ||
output "output_list" { | ||
value = "${module.list_remove.output_list}" | ||
value = module.list_remove.output_list | ||
} | ||
|
||
output "output_list_as_csv" { | ||
value = "${join(",", module.list_remove.output_list)}" | ||
value = join(",", module.list_remove.output_list) | ||
} |
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,9 +1,9 @@ | ||
variable "input_list" { | ||
description = "The list of items from which you wish to remove items." | ||
type = "list" | ||
type = list(any) | ||
} | ||
|
||
variable "items_to_remove" { | ||
description = "The list of items you wish to remove from the input_list." | ||
type = "list" | ||
type = list(any) | ||
} |
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,7 +1,7 @@ | ||
output "os_name" { | ||
value = "${module.os.name}" | ||
value = module.os.name | ||
} | ||
|
||
output "path_separator" { | ||
value = "${module.os.path_separator}" | ||
value = module.os.path_separator | ||
} |
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,9 +1,9 @@ | ||
output "command_echo" { | ||
description = "For the pex data source, if successful, this will contain the echo string." | ||
value = "${lookup(module.pex_data.result, "echo")}" | ||
value = module.pex_data.result["echo"] | ||
} | ||
|
||
output "command_python_version" { | ||
description = "Read out the python version that was used to run the PEX" | ||
value = "${lookup(module.pex_data.result, "python_version_info")}" | ||
value = module.pex_data.result["python_version_info"] | ||
} |
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,4 +1,5 @@ | ||
variable "echo_string" { | ||
description = "This string will be echo'd back from the pex data source." | ||
type = string | ||
default = "Hello world!" | ||
} |
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,11 +1,15 @@ | ||
terraform { | ||
required_version = ">= 0.12" | ||
} | ||
|
||
module "require_executables" { | ||
# When using these modules in your own templates, you will need to use a Git URL with a ref attribute that pins you | ||
# to a specific version of the modules, such as the following example: | ||
# source = "git::[email protected]:gruntwork-io/package-terraform-utilities.git//modules/require-executable?ref=v1.0.8" | ||
source = "../../modules/require-executable" | ||
|
||
required_executables = ["${var.required_executables}"] | ||
error_message = "${var.error_message}" | ||
required_executables = var.required_executables | ||
error_message = var.error_message | ||
} | ||
|
||
# Conditional checking example | ||
|
@@ -15,6 +19,6 @@ module "conditional_require_executables" { | |
# source = "git::[email protected]:gruntwork-io/package-terraform-utilities.git//modules/require-executable?ref=v1.0.8" | ||
source = "../../modules/require-executable" | ||
|
||
required_executables = ["${var.validate_bad_executable ? "this-executable-should-not-exist" : ""}"] | ||
error_message = "${var.bad_executable_error_message}" | ||
required_executables = [var.validate_bad_executable ? "this-executable-should-not-exist" : ""] | ||
error_message = var.bad_executable_error_message | ||
} |
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
Oops, something went wrong.