File tree 2 files changed +4
-5
lines changed
examples/simple_zonal_with_acm
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ module "acm" {
28
28
29
29
secret_type = " ssh"
30
30
31
- policy_bundles = [" https://github.com/GoogleCloudPlatform/acm-policy-controller-library/bundles/policy-essentials-v2022#e4094aacb91a35b0219f6f4cf6a31580e85b3c28 " ]
31
+ policy_bundles = [" https://github.com/GoogleCloudPlatform/acm-policy-controller-library/bundles/policy-essentials-v2022?ref=59f4695394285078f7c2029ec7d0f9ed1d6d700a " ]
32
32
33
33
create_metrics_gcp_sa = true
34
34
}
Original file line number Diff line number Diff line change @@ -18,13 +18,12 @@ module "policy_bundles" {
18
18
source = " terraform-google-modules/gcloud/google//modules/kubectl-wrapper"
19
19
version = " ~> 3.1"
20
20
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 }
21
+ for_each = toset (var. policy_bundles )
23
22
project_id = var. project_id
24
23
cluster_name = var. cluster_name
25
24
cluster_location = var. location
26
- kubectl_create_command = " kubectl apply -k ${ each . value } "
27
- kubectl_destroy_command = " kubectl delete -k ${ each . value } "
25
+ kubectl_create_command = " kubectl apply -k ${ each . key } "
26
+ kubectl_destroy_command = " kubectl delete -k ${ each . key } "
28
27
29
28
module_depends_on = [time_sleep . wait_acm ]
30
29
}
You can’t perform that action at this time.
0 commit comments