diff --git a/CHANGELOG b/CHANGELOG index 7855af145bad50e049ec81812714e1b5fd36cf95..fc9be9c977e27303930506f0b8c2b89531bf66ee 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [8.4.0] - 2023-09-11 + +### Added + +- new variable `vpc_access_connector_max_throughput` to allow max_throughput to be set on the vpc_access_connector resource. + ## [8.3.0] - 2023-08-18 ### Added diff --git a/static_egress_ip.tf b/static_egress_ip.tf index e34927044dec1b8621506392f21170fc37ca7a0f..b3538218edef82ea869b153d248865d4341cf170 100644 --- a/static_egress_ip.tf +++ b/static_egress_ip.tf @@ -19,6 +19,8 @@ resource "google_vpc_access_connector" "static-ip-connector" { } region = var.cloud_run_region + max_throughput = var.vpc_access_connector_max_throughput + lifecycle { ignore_changes = [ network, diff --git a/variables.tf b/variables.tf index 880a15813b45e00079b73f1ad26cf49680394666..b570035e502a62ff26e0101057cfa9c6b9dd535d 100644 --- a/variables.tf +++ b/variables.tf @@ -435,3 +435,12 @@ variable "image_name" { error_message = "The image_name value must be a valid URL to a container image." } } + +variable "vpc_access_connector_max_throughput" { + type = number + default = 300 + description = <<-EOL + Optional. The maximum throughput of the connector in megabytes per second. + Defaults to 300. +EOL +} \ No newline at end of file