VPC peering
The module allows to create VPC peering between two networks in both directions.
By default, no routes are exported/imported for each direction, every option has to be explicitely enabled by setting appropriate value to true
.
Reference
Requirements
Name | Version |
---|---|
terraform | >= 1.3, < 2.0 |
Providers
Name | Version |
---|---|
n/a |
Modules
No modules.
Resources
Name | Type |
---|---|
google_compute_network_peering.local | resource |
google_compute_network_peering.peer | resource |
Inputs
Name | Description | Type | Default | Required |
---|---|---|---|---|
local_export_custom_routes | Export custom routes setting for 'local->peer' direction. | bool | false | no |
local_export_subnet_routes_with_public_ip | Export subnet routes with public IP setting for 'local->peer' direction. | bool | false | no |
local_import_custom_routes | Import custom routes setting for 'local->peer' direction. | bool | false | no |
local_import_subnet_routes_with_public_ip | Import subnet routes with public IP setting for 'local->peer' direction. | bool | false | no |
local_network | Self-link or id of the first network (local) in pair. | string | n/a | yes |
local_peering_name | Name for 'local->peer' direction peering resource. If not specified defaults to <name_prefix><local network name>-<peer network name> . | string | null | no |
name_prefix | Optional prefix for auto-generated peering resource names. | string | "" | no |
peer_export_custom_routes | Export custom routes setting for 'peer->local' direction. | bool | false | no |
peer_export_subnet_routes_with_public_ip | Export subnet routes with public IP setting for 'peer->local' direction. | bool | false | no |
peer_import_custom_routes | Import custom routes setting for 'peer->local' direction. | bool | false | no |
peer_import_subnet_routes_with_public_ip | Import subnet routes with public IP setting for 'peer->local' direction. | bool | false | no |
peer_network | Self-link or id of the second network (peer) in pair. | string | n/a | yes |
peer_peering_name | Name for 'peer->local' direction peering resource. If not specified defaults to <name_prefix><peer network name>-<local network name> . | string | null | no |
Outputs
No outputs.