From 88303fedea8701daf755499bb9df94c27ba1b5c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Stresing?= Date: Wed, 31 Jul 2024 01:16:57 +0200 Subject: [PATCH] Use random_string instead of random_password for cloud task queue suffix --- tasks.tf | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tasks.tf b/tasks.tf index fcab789..1126c37 100644 --- a/tasks.tf +++ b/tasks.tf @@ -1,15 +1,17 @@ -resource "random_password" "task_queue_suffix" { +resource "random_string" "task_queue_suffix" { length = 5 - upper = false + upper = false + special = false + numeric = false } resource "google_cloud_tasks_queue" "autoscaler_tasks" { - name = "autoscaler-callback-queue-${random_password.task_queue_suffix.result}" + name = "autoscaler-callback-queue-${random_string.task_queue_suffix.result}" location = local.region depends_on = [google_project_service.cloudtasks_api] retry_config { - max_attempts = 10 // max_attempts && max_retry_duration have to be fullfilled to stop retires + max_attempts = 10 // max_attempts && max_retry_duration have to be fullfilled to stop retires max_retry_duration = "3600s" // max_attempts && max_retry_duration have to be fullfilled to stop retires max_backoff = "600s" min_backoff = "60s"