Skip to content

GoogleCloudPlatform/gcp-to-aws-ha-vpn-terraform-module

Repository files navigation

GCP to AWS HA VPN Terraform module

This module provisions HA VPN between GCP and AWS. The minimum number of tunnels required is 4, but can be incremented in multiples of 2.

Reference Architecture

Reference Architecture

Image Credit: https://cloud.google.com/network-connectivity/docs/vpn/tutorials/create-ha-vpn-connections-google-cloud-aws#architecture_overview.

Requirements

Name Version
terraform ~> 1.6
aws ~> 5.31
google ~> 5.10

Providers

Name Version
aws ~> 5.31
awscc n/a
google ~> 5.10

Resources

Name Type
aws_customer_gateway.gwy resource
aws_ec2_transit_gateway.tgw resource
aws_vpn_connection.vpn_conn resource
awscc_ec2_transit_gateway_attachment.tgw_attachment resource
google_compute_external_vpn_gateway.ext_gwy resource
google_compute_ha_vpn_gateway.gwy resource
google_compute_router.router resource
google_compute_router_interface.interface resource
google_compute_router_peer.peer resource
google_compute_vpn_tunnel.tunnel resource

Inputs

Name Description Type Default Required
aws_private_subnets n/a list(string) n/a yes
aws_router_asn n/a string n/a yes
aws_vpc_cidr n/a string n/a yes
aws_vpc_id n/a string n/a yes
gcp_network Name of the GCP network. string n/a yes
gcp_router_asn n/a string n/a yes
num_tunnels Total number of VPN tunnels. This needs to be in multiples of 2. number n/a yes
prefix Prefix used for all the resources. string n/a yes
project_id n/a string n/a yes
shared_secret n/a string n/a yes
vpn_gwy_region n/a string n/a yes

Contributing

See CONTRIBUTING.md for details.

License

Apache 2.0. See LICENSE for details.

Disclaimer

This project is not an official Google project. It is not supported by Google and Google specifically disclaims all warranties as to its quality, merchantability, or fitness for a particular purpose.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages