Skip to content

Commit

Permalink
Merge pull request #3 from prashy6191/master
Browse files Browse the repository at this point in the history
adding max_throughput parameter
  • Loading branch information
prashy6191 authored Apr 26, 2023
2 parents b8db9b8 + 2238d4e commit ffd7a6d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
11 changes: 6 additions & 5 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +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
ip_cidr_range = var.ip_cidr_range
depends_on = [google_project_service.networking_api, google_project_service.serverless_vpc_api]
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 {
create = var.connector_timeout
delete = var.connector_timeout
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,9 @@ variable "connector_timeout" {
type = string
default = "10m"
}

variable "max_throughput" {
description = "Maximum throughput of the Serverless VPC Access connector in Mbps."
type = number
default = 300
}

0 comments on commit ffd7a6d

Please sign in to comment.