Giter VIP home page Giter VIP logo

terraform-aws-vpc-peering's Introduction

aws_vpc_peering terraform module

A terraform module to provide a VPC peering from one VPC to another.

Notes:

  • AWS does not support multi-region VPC peering; this will only work when both VPCs are within the same region.
  • There must not be a CIDR block overlap between the two VPCs.

Module Input Variables

  • peer_from_vpc_name - name for the initiating VPC. This will be used in the Name tag.
  • peer_to_vpc_name - name for the receiving VPC. This will be used in the Name tag.
  • peer_from_vpc_id - the VPC ID of the initiating VPC.
  • peer_to_vpc_id - the VPC ID of the receiving VPC.
  • peer_from_route_tables - route tables of the initiating VPC to add routes to the receiving VPC for.
  • peer_to_vpc_route_tables - route tables of the receiving VPC to add routes to the initiating VPC for.
  • auto_accept - specify whether or not this connection should automatically be accepted

Usage

module "vpc_peering" {
  source = "github.com/thomasbiddle/tf_aws_vpc_peering"

  peer_from_vpc_name = "my-vpc"
  peer_to_vpc_name   = "my-other-vpc"
  
  peer_from_vpc_id = "vpc-abcd1234"
  peer_to_vpc_id   = "vpc-abcd5678"
  
  peer_from_route_tables   = ["rtb-xyz12345", "rtb-xyz54321", "rtb-xyz99999"]
  peer_to_route_tables     = ["rtb-abcd1234", "rtb-abcd5678"]
}

Outputs

  • peering_connection_id - the ID of the VPC Peering Connection.

Authors

Originally created and maintained by TJ Biddle

License

MIT Licensed. See LICENSE for full details.

terraform-aws-vpc-peering's People

Contributors

eric-gonzales avatar thomasbiddle 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.