Deploy HA VPN with Terraform
Contributed by Google employees.
This tutorial demonstrates how to use Terraform to deploy the High Availability VPN resources on Google Cloud that are used in the VPN interoperability guides.
Deploy HA VPN with a 1-peer-2-addresses configuration on Google Cloud.
Before you begin
This guide assumes that you are familiar with Terraform. Instructions provided in this guide are based on the Google Cloud envrionment depicted in the HA VPN interop guides and are only for testing purposes.
See Getting started with Terraform on Google Cloud to set up your Terraform envrionment for Google Cloud.
Clone the repository:
git clone https://github.com/GoogleCloudPlatform/community.git
Go to the
(optional) Change variable values in
gcp_variables.tffor your envrionment.
Run the following Terraform commands:
Examine configuration files:
terraform init terraform validate terraform plan
Apply the configurations:
terraform output terraform show
terraform plan -destroy terraform destroy terraform show