Skip to content

Latest commit

 

History

History
 
 

vpc-serverless-connector-beta

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Terraform VPC Serverless Connector Beta

This submodule is part of the the terraform-google-network module. It creates the vpc serverless connector using the beta components available.

It supports creating:

  • serverless connector
  • serverless vpc access connector

Usage

Basic usage of this submodule is as follows:

module "serverless-connector" {
  source     = "terraform-google-modules/network/google//modules/vpc-serverless-connector-beta"
  project_id = <PROJECT ID>
  vpc_connectors = [{
    name            = "central-serverless"
    region          = "us-central1"
    subnet_name     = "<SUBNET NAME>"
    host_project_id = "<HOST PROJECT ID>"
    machine_type    = "e2-standard-4"
    min_instances   = 2
    max_instances   = 3
    max_throughput  = 300
  }]
}

Inputs

Name Description Type Default Required
project_id Project in which the vpc connector will be deployed. string n/a yes
vpc_connectors List of VPC serverless connectors.
list(object({
name = string,
region = string,
network = optional(string, null),
subnet_name = optional(string, null),
ip_cidr_range = optional(string, null),
host_project_id = optional(string, null),
machine_type = optional(string, null),
min_instances = optional(number, null),
max_instances = optional(number, null),
max_throughput = optional(number, null)
}))
[] no

Outputs

Name Description
connector_ids VPC serverless connector ID.