Code Monkey home page Code Monkey logo

autonetdeploy-multicloudvpn's Introduction

Automated Network Deployment: Multicloud VPN - GCP-AWS VPN

Disclaimer: This is not an official Google product.

Demonstration of Terraform for automated deployment of network infrastructure in both Google Cloud Platform (GCP) and Amazon Web Services (AWS). This is a multi-cloud VPN setup.

You can look at an architecture diagram for this setup here.

See https://github.com/GoogleCloudPlatform/autonetdeploy-startup.git for the required procedure for setting up the environment with credentials for this tutorial.

Quick Start

  • Select project gcp-automated-networks.
  • Activate Google Cloud Shell. Use Cloud Shell because the Google Cloud SDK (gcloud) and other tools are included.
  • git clone https://github.com/GoogleCloudPlatform/autonetdeploy-multicloudvpn.git
  • cd autonetdeploy-multicloudvpn
  • Install Terraform: ./get_terraform.sh
    • export PATH=${HOME}/terraform:$ {PATH}
  • Setup for AWS.
    • After you sign in to the AWS Management Console, navigate to the VPC Dashboard and select the Oregon region.
    • ./aws_set_credentials.sh exists
  • Setup for GCP.
    • ./gcp_set_credentials.sh exists
    • gcloud config set project [YOUR-PROJECT_ID]
    • ./gcp_set_project.sh
  • Run Terraform.
    • pushd ./terraform
    • Examine configuration files.
    • terraform init
    • terraform validate
    • terraform plan
    • terraform apply
    • terraform output
    • terraform show
    • gcloud compute instances list
    • ssh -i ~/.ssh/vm-ssh-key [GCP_EXTERNAL_IP]
    • ping -c 5 google.com
    • curl ifconfig.co/ip
    • Run iperf over external route: /tmp/run_iperf_to_ext.sh
    • Run iperf over VPN route: /tmp/run_iperf_to_int.sh
    • exit
    • ssh -i ~/.ssh/vm-ssh-key [AWS_EXTERNAL_IP]
    • ping -c 5 google.com
    • curl ifconfig.co/ip
    • Run iperf over external route: /tmp/run_iperf_to_ext.sh
    • Run iperf over VPN route: /tmp/run_iperf_to_int.sh
    • exit
  • Clean up
    • terraform plan -destroy
    • terraform destroy
    • terraform show
    • popd

References

License

Copyright 2017 Google Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

autonetdeploy-multicloudvpn's People

Contributors

makocchi-git avatar miketruty avatar shashyajoshi avatar tomatgoogle avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.