From 5b930854d076466fe1be5ac24ed579eb1530440d Mon Sep 17 00:00:00 2001 From: Andrew Peabody Date: Thu, 1 Jun 2023 22:36:15 +0000 Subject: [PATCH] fix: increase time for ACM when using policy bundles --- modules/acm/creds.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/acm/creds.tf b/modules/acm/creds.tf index fb8b5fb379..5bd395da97 100644 --- a/modules/acm/creds.tf +++ b/modules/acm/creds.tf @@ -30,12 +30,12 @@ resource "tls_private_key" "k8sop_creds" { rsa_bits = 4096 } -# Wait for the ACM operator to create the namespace +# Wait for ACM resource "time_sleep" "wait_acm" { count = (var.create_ssh_key == true || var.ssh_auth_key != null || var.enable_policy_controller || var.enable_config_sync) ? 1 : 0 depends_on = [google_gke_hub_feature_membership.main] - create_duration = "300s" + create_duration = (length(var.policy_bundles) > 0) ? "600s" : "300s" } resource "google_service_account_iam_binding" "ksa_iam" {