File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
examples/simple_zonal_with_acm Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ module "acm" {
2828
2929 secret_type = " ssh"
3030
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 " ]
3232
3333 create_metrics_gcp_sa = true
3434}
Original file line number Diff line number Diff line change @@ -18,13 +18,12 @@ module "policy_bundles" {
1818 source = " terraform-google-modules/gcloud/google//modules/kubectl-wrapper"
1919 version = " ~> 3.1"
2020
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 )
2322 project_id = var. project_id
2423 cluster_name = var. cluster_name
2524 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 } "
2827
2928 module_depends_on = [time_sleep . wait_acm ]
3029}
You can’t perform that action at this time.
0 commit comments