From f457cf2a6c496535c0de8b7c66fda34889fce94f Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Tue, 20 Jul 2021 23:03:01 -0400 Subject: [PATCH] Put on a limit of max instances. --- terraform/modules/cf_to_pubsub/cf_to_pubsub.tf | 1 + 1 file changed, 1 insertion(+) diff --git a/terraform/modules/cf_to_pubsub/cf_to_pubsub.tf b/terraform/modules/cf_to_pubsub/cf_to_pubsub.tf index d957e26..411e297 100644 --- a/terraform/modules/cf_to_pubsub/cf_to_pubsub.tf +++ b/terraform/modules/cf_to_pubsub/cf_to_pubsub.tf @@ -57,6 +57,7 @@ resource "google_cloudfunctions_function" "function" { source_archive_object = google_storage_bucket_object.remote_archive.name trigger_http = true entry_point = "main" + max_instances = 4 ingress_settings = "ALLOW_ALL" # ingress_settings = "ALLOW_INTERNAL_ONLY"