Skip to content

Commit f70b52f

Browse files
authoredMay 13, 2024··
feat: index policy attachments by arn if supplied as list (#8)
## Description <!--- Describe your changes in detail --> ## Motivation and Context <!--- Why is this change required? What problem does it solve? --> <!--- If it fixes an open issue, please link to the issue here. --> ## Breaking Changes <!-- Does this break backwards compatibility with the current major version? --> <!-- If so, please provide an explanation why it is necessary. --> ## How Has This Been Tested? - [ ] I have updated at least one of the `examples/*` to demonstrate and validate my change(s) - [ ] I have tested and validated these changes using one or more of the provided `examples/*` projects <!--- Users should start with an existing example as its written, deploy it, then check their changes against it --> <!--- This will highlight breaking/disruptive changes. Once you have checked, deploy your changes to verify --> <!--- Please describe how you tested your changes --> - [ ] I have executed `pre-commit run -a` on my pull request <!--- Please see https://github.com/antonbabenko/pre-commit-terraform#how-to-install for how to install -->
1 parent 80ee68f commit f70b52f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎main.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ locals {
1414
redeployment = timestamp()
1515
} : {}
1616

17-
task_policy_arns_map = merge({ for i, a in var.task_policy_arns : format("_#%v_", i) => a }, var.task_policy_arns_map)
17+
task_policy_arns_map = merge({ for i, arn in var.task_policy_arns : arn => arn }, var.task_policy_arns_map)
1818

19-
task_exec_policy_arns_map = merge({ for i, a in var.task_exec_policy_arns : format("_#%v_", i) => a }, var.task_exec_policy_arns_map)
19+
task_exec_policy_arns_map = merge({ for i, arn in var.task_exec_policy_arns : arn => arn }, var.task_exec_policy_arns_map)
2020
}
2121

2222
module "task_label" {

0 commit comments

Comments
 (0)
Please sign in to comment.