We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbb57a2 commit abdba8cCopy full SHA for abdba8c
modules/acm/creds.tf
@@ -18,10 +18,10 @@ locals {
18
# GCP service account ids must be <= 30 chars matching regex ^[a-z](?:[-a-z0-9]{4,28}[a-z0-9])$
19
service_account_name = trimsuffix(substr(var.metrics_gcp_sa_name, 0, 30), "-")
20
21
- iam_ksa_binding_members = var.create_metrics_gcp_sa ? [
22
- var.enable_config_sync ? "config-management-monitoring/default" : null,
23
- var.enable_policy_controller ? "gatekeeper-system/gatekeeper-admin" : null,
24
- ] : []
+ iam_ksa_binding_members = var.create_metrics_gcp_sa ? concat(
+ var.enable_config_sync ? ["config-management-monitoring/default"] : [],
+ var.enable_policy_controller ? ["gatekeeper-system/gatekeeper-admin"] : [],
+ ) : []
25
}
26
27
resource "tls_private_key" "k8sop_creds" {
0 commit comments