From 1cc50ca5c9ce5a1c33b30e4f24fa6b562688afd2 Mon Sep 17 00:00:00 2001 From: Ryan Sinnet Date: Tue, 5 Oct 2021 23:43:54 -0700 Subject: [PATCH] feat: Add max_throughput to vpc-serverless-connector-beta (#322) Expose the max_throughput argument of the google_vpc_access_connector. --- modules/vpc-serverless-connector-beta/README.md | 1 + modules/vpc-serverless-connector-beta/main.tf | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/vpc-serverless-connector-beta/README.md b/modules/vpc-serverless-connector-beta/README.md index 08dc1ea8..eb5ec048 100644 --- a/modules/vpc-serverless-connector-beta/README.md +++ b/modules/vpc-serverless-connector-beta/README.md @@ -23,6 +23,7 @@ module "serverless-connector" { machine_type = "e2-standard-4" min_instances = 2 max_instances = 3 + max_throughput = 300 }] } ``` diff --git a/modules/vpc-serverless-connector-beta/main.tf b/modules/vpc-serverless-connector-beta/main.tf index 9aff807d..9e6f2d47 100644 --- a/modules/vpc-serverless-connector-beta/main.tf +++ b/modules/vpc-serverless-connector-beta/main.tf @@ -31,7 +31,8 @@ resource "google_vpc_access_connector" "connector_beta" { project_id = lookup(each.value, "host_project_id", null) } } - machine_type = lookup(each.value, "machine_type", null) - min_instances = lookup(each.value, "min_instances", null) - max_instances = lookup(each.value, "max_instances", null) + machine_type = lookup(each.value, "machine_type", null) + min_instances = lookup(each.value, "min_instances", null) + max_instances = lookup(each.value, "max_instances", null) + max_throughput = lookup(each.value, "max_throughput", null) }