2023-03-24 05:28:32 -07:00
|
|
|
# VPC Serverless Connector
|
|
|
|
|
|
|
|
This FAST plugin adds centralized [Serverless VPC Access Connectors](https://cloud.google.com/vpc/docs/serverless-vpc-access) to network stages.
|
|
|
|
|
|
|
|
This plugin does not manage
|
|
|
|
|
|
|
|
- IAM bindings for the connectors, which should be added via the stage project-level variables
|
|
|
|
- firewall rules for the connectors, which should be added via the stage factory
|
|
|
|
|
|
|
|
The plugin only requires a specific configuration if the defaults it uses need to be changed:
|
|
|
|
|
|
|
|
- the connector-specific subnets default to the `10.255.255.0` range
|
|
|
|
- the machine type, number of instances and thoughput use the API defaults
|
|
|
|
|
|
|
|
To enable the plugin, simply copy or link its files in the networking stage.
|
|
|
|
|
|
|
|
<!-- TFDOC OPTS files:1 show_extra:1 -->
|
|
|
|
<!-- BEGIN TFDOC -->
|
|
|
|
|
|
|
|
## Files
|
|
|
|
|
|
|
|
| name | description | modules | resources |
|
|
|
|
|---|---|---|---|
|
|
|
|
| [local-serverless-connector-outputs.tf](./local-serverless-connector-outputs.tf) | Serverless Connector outputs. | | <code>google_storage_bucket_object</code> · <code>local_file</code> |
|
|
|
|
| [local-serverless-connector-variables.tf](./local-serverless-connector-variables.tf) | Serverless Connector variables. | | |
|
|
|
|
| [local-serverless-connector.tf](./local-serverless-connector.tf) | Serverless Connector resources. | <code>net-vpc</code> | <code>google_vpc_access_connector</code> |
|
|
|
|
|
|
|
|
## Variables
|
|
|
|
|
|
|
|
| name | description | type | required | default | producer |
|
|
|
|
|---|---|:---:|:---:|:---:|:---:|
|
|
|
|
| [serverless_connector_config](local-serverless-connector-variables.tf#L19) | VPC Access Serverless Connectors configuration. | <code title="object({ dev-primary = object({ ip_cidr_range = optional(string, "10.255.255.128/28") machine_type = optional(string) instances = optional(object({ max = optional(number) min = optional(number) }), {}) throughput = optional(object({ max = optional(number) min = optional(number) }), {}) }) prod-primary = object({ ip_cidr_range = optional(string, "10.255.255.0/28") machine_type = optional(string) instances = optional(object({ max = optional(number) min = optional(number) }), {}) throughput = optional(object({ max = optional(number) min = optional(number) }), {}) }) })">object({…})</code> | | <code title="{ dev-primary = {} prod-primary = {} }">{…}</code> | |
|
|
|
|
|
|
|
|
## Outputs
|
|
|
|
|
|
|
|
| name | description | sensitive | consumers |
|
|
|
|
|---|---|:---:|---|
|
2023-06-07 10:37:46 -07:00
|
|
|
| [plugin_sc_connectors](local-serverless-connector-outputs.tf#L47) | VPC Access Connectors. | | |
|
2023-03-24 05:28:32 -07:00
|
|
|
|
|
|
|
<!-- END TFDOC -->
|