From 61bf2faa0d14247e60f426bf668bac0801312b99 Mon Sep 17 00:00:00 2001 From: Prashant Madhukar - Date: Wed, 26 Apr 2023 15:09:12 +0800 Subject: [PATCH 1/4] adding parameter max_throughput --- main.tf | 1 + variables.tf | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/main.tf b/main.tf index 590fe6a..1b94fc8 100644 --- a/main.tf +++ b/main.tf @@ -21,6 +21,7 @@ resource "google_vpc_access_connector" "vpc_connector" { name = local.connector_name region = local.connector_region network = var.vpc_name + max_throughput = var.max_throughput ip_cidr_range = var.ip_cidr_range depends_on = [google_project_service.networking_api, google_project_service.serverless_vpc_api] timeouts { diff --git a/variables.tf b/variables.tf index baa425e..632ab9a 100644 --- a/variables.tf +++ b/variables.tf @@ -42,3 +42,9 @@ variable "connector_timeout" { type = string default = "10m" } + +variable "max_throughput" { + description = "size of network throughput of the VPC Access Connector" + type = number + default = 1000 +} \ No newline at end of file From 2dd1425e72ed557dee8cec4db69bd4088bcd2da7 Mon Sep 17 00:00:00 2001 From: Prashant Madhukar - Date: Wed, 26 Apr 2023 15:10:59 +0800 Subject: [PATCH 2/4] adding parameter max_throughput --- main.tf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.tf b/main.tf index 1b94fc8..1ff90e5 100644 --- a/main.tf +++ b/main.tf @@ -18,12 +18,12 @@ resource "google_project_service" "serverless_vpc_api" { } resource "google_vpc_access_connector" "vpc_connector" { - name = local.connector_name - region = local.connector_region - network = var.vpc_name + name = local.connector_name + region = local.connector_region + network = var.vpc_name max_throughput = var.max_throughput - ip_cidr_range = var.ip_cidr_range - depends_on = [google_project_service.networking_api, google_project_service.serverless_vpc_api] + ip_cidr_range = var.ip_cidr_range + depends_on = [google_project_service.networking_api, google_project_service.serverless_vpc_api] timeouts { create = var.connector_timeout delete = var.connector_timeout From dbb124c053e1bce8d4e0b180c0bafcc131a937a4 Mon Sep 17 00:00:00 2001 From: Prashant Madhukar - Date: Wed, 26 Apr 2023 15:27:39 +0800 Subject: [PATCH 3/4] adding parameter max_throughput with description --- variables.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/variables.tf b/variables.tf index 632ab9a..307830c 100644 --- a/variables.tf +++ b/variables.tf @@ -44,7 +44,7 @@ variable "connector_timeout" { } variable "max_throughput" { - description = "size of network throughput of the VPC Access Connector" + description = "Maximum throughput of the Serverless VPC Access connector in Mbps." type = number default = 1000 } \ No newline at end of file From 2238d4ee5812fcdc1732129e9b1499aaa29458cb Mon Sep 17 00:00:00 2001 From: Prashant Madhukar - Date: Wed, 26 Apr 2023 15:33:17 +0800 Subject: [PATCH 4/4] adding parameter max_throughput with description and default value --- variables.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/variables.tf b/variables.tf index 307830c..b0b3c9f 100644 --- a/variables.tf +++ b/variables.tf @@ -46,5 +46,5 @@ variable "connector_timeout" { variable "max_throughput" { description = "Maximum throughput of the Serverless VPC Access connector in Mbps." type = number - default = 1000 + default = 300 } \ No newline at end of file