-
-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use map for task & task exec policy arns variables (#194)
* Add option to trigger a redeployment on apply (#193) * Add option to trigger a redeployment on apply * add triggers var to each variation of ecs_service * set redeployment trigger value in locals * Update example version and fixture * Update readme * Bump min tf version to 0.14 doc: rebuild readme * Run pr/auto-format/host locally * Modify task_policy_arns to use map - avoid Terraform for_each error related to dependency on resources known after apply - deprecate var task_policy_arns - replace with task_policy_arns_map * Use map instead of list for task_policy_arns * Replace task_exec_policy_arns with task_exec_policy_arns_map - deprecate task_exec_policy_arns - add test input for task_policy_arns * Rename test policy statement * Update readme * Auto Format * bump tf version for examples --------- Co-authored-by: cloudpossebot <[email protected]>
- Loading branch information
1 parent
c228577
commit c9f96f1
Showing
9 changed files
with
73 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,7 @@ | |
|
||
.build-harness | ||
build-harness | ||
|
||
# Test output | ||
test.log | ||
.terraform.lock.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
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,5 +1,5 @@ | ||
terraform { | ||
required_version = ">= 0.14.0" | ||
required_version = ">= 1.0" | ||
|
||
required_providers { | ||
aws = { | ||
|
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,11 @@ | ||
variable "task_policy_arns" { | ||
type = list(string) | ||
description = "A list of IAM Policy ARNs to attach to the generated task role." | ||
default = [] | ||
} | ||
|
||
variable "task_exec_policy_arns" { | ||
type = list(string) | ||
description = "A list of IAM Policy ARNs to attach to the generated task execution role." | ||
default = [] | ||
} |
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
So you make a breaking change and remove nice naming to not nice numbers.
To return naming, just need to provide arn as naming. IE: