Skip to content

Commit

Permalink
Use random_string instead of random_password for cloud task queue suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tereius committed Jul 30, 2024
1 parent f2714ae commit 88303fe
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tasks.tf
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 88303fe

Please sign in to comment.