File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,13 @@ module "policy_bundles" {
18
18
source = " terraform-google-modules/gcloud/google//modules/kubectl-wrapper"
19
19
version = " ~> 3.1"
20
20
21
- for_each = toset (var. policy_bundles )
21
+ # Use index as name to avoid long url or special filesystem chars
22
+ for_each = { for i , v in var . policy_bundles : i => v }
22
23
project_id = var. project_id
23
24
cluster_name = var. cluster_name
24
25
cluster_location = var. location
25
- kubectl_create_command = " kubectl apply -k ${ each . key } "
26
- kubectl_destroy_command = " kubectl delete -k ${ each . key } "
26
+ kubectl_create_command = " kubectl apply -k ${ each . value } "
27
+ kubectl_destroy_command = " kubectl delete -k ${ each . value } "
27
28
28
29
module_depends_on = [time_sleep . wait_acm ]
29
30
}
You can’t perform that action at this time.
0 commit comments