Edit on GitHub
Report issue
Page history

Deploy HA VPN with Terraform

Author(s): @ashishverm ,   Published: 2019-07-12


This tutorial demonstrates how to use Terraform to deploy the High Availability VPN resources on GCP that are used in the VPN interoperability guides.

Objectives

Deploy HA VPN with a 1-peer-2-addresses configuration on Google Cloud Platform (GCP).

Before you begin

Quickstart

  1. Clone the repository:

    git clone https://github.com/GoogleCloudPlatform/community.git
    
  2. Go to the deploy-ha-vpn-with-terraform/terraform directory:

    cd community/tutorials/deploy-ha-vpn-with-terraform/terraform
    
  3. (optional) Change variable values in gcp_variables.tf for your envrionment.

  4. Run the following Terraform commands:

    1. Examine configuration files:

      terraform init
      terraform validate
      terraform plan
      
    2. Apply the configurations:

      terraform apply
      
    3. Confirm configurations:

      terraform output
      terraform show
      
    4. Clean up:

      terraform plan -destroy
      terraform destroy
      terraform show
      

References

Submit a Tutorial

Share step-by-step guides

SUBMIT A TUTORIAL

Request a Tutorial

Ask for community help

SUBMIT A REQUEST

GCP Tutorials

Tutorials published by GCP

VIEW TUTORIALS

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see our Site Policies. Java is a registered trademark of Oracle and/or its affiliates.