Skip to content

Creates VPC to VPC VPN tunnels between AWS Virtual Private Clouds (VPC)

License

Notifications You must be signed in to change notification settings

vinayselvaraj/vpc2vpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vpc2vpc : VPC to VPC VPN Tunnels for Virtual Private Clouds (VPC)

This tool will automate the process of setting up EC2 instances to build site to site VPN tunnels between VPCs in your AWS cloud. Use this at your own risk. It hasn't been fully tested and is in the early stages of development. This automates the steps described in the following document: https://aws.amazon.com/articles/5472675506466066

Requirements

You will need to have the following in order to use vpc2vpc:

  • Java 1.6+
  • AWS Access Key and Secret Access Key
  • Two or more VPCs to connect

Download

Go to the releases page to download the latest release of vpc2vpc https://github.com/vinayselvaraj/vpc2vpc/releases

Installation

  1. Extract the downloaded tar.gz file in your preferred location
  2. Set the bin directory under the extracted vpc2vpc directory in your PATH
  3. Set the JAVA_HOME variable pointing to JRE/JDK you wish to use
  4. Set the AWS_ACCESS_KEY_ID & AWS_SECRET_ACCESS_KEY environment variables

Creating a vpc2vpc Connection

To create a vpc2vpc connection, you can specify the VPCs you'd like to connect using CIDR notation or VPC ID. You can also specify the specific public subnet you wish to launch the VPN instances by CIDR notation or Subnet ID. See the examples below for details:

# Create a connection between VPCs using CIDR notation
$ vpc2vpc create 10.1.0.0/16 10.2.0.0/16

# Create a connections between three VPCs using CIDR notation
$ vpc2vpc create 10.1.0.0/16 10.2.0.0/16 10.3.0.0/16

# Create connections between three VPCs and specify a subnet CIDR of the public subnet in the first VPC
$ vpc2vpc create 10.1.0.0/24 10.2.0.0/16 10.3.0.0/16

Listing vpc2vpc Connections

Run the command below to list vpc2vpc connections in your AWS account. The command may take a moment to run since it needs to gather information from all AWS regions.

$ vpc2vpc list

Deleting vpc2vpc Connections

To delete a vpc2vpc connect, use the delete command and pass the ID of the vpc2vpc connection. See the example below:

$ vpc2vpc delete -i vpc2vpc-1e39f445

About

Creates VPC to VPC VPN tunnels between AWS Virtual Private Clouds (VPC)

Resources

License

Stars

Watchers

Forks

Packages

No packages published