Giter Club home page Giter Club logo

transit-gateway-peering-accepter's Introduction

CloudFormation custom resource - Transit Gateway Peering Attachment Accepter

In this repository you will find a CloudFormation Custom Resource which accepts a Transit Gateway Peering Attachment. The Python code for the Lambda can be found in the directory ./transit-gateway-peering-accepter

A Transit Gateway Attachment can be accepted if the state is pendingAcceptance after accepting the attachment it will go into the pending state, if successful the attachment becomes available after 2-5 minutes.

See image below for the whole lifecycle of the attachment:

Lambda Custom Resource

The Lambda custom resource will wait for the attachment states. The states are handled as follows:

  • pendingAcceptance: Accept the peering attachment
  • pending, initiating, initiatingRequest: Wait for pendingAcceptance or a failure
  • available: Send a SUCCESS response to CloudFormation
  • Other states: Throw an exception and send FAILED response to CloudFormation

CloudFormation Examples

You can find two CloudFormation examples that implement the custom resource. Two stacks can be found a minimal stack and a full stack.

Minimal

This is a minimal stack, which only has the Transit Gateway, Peering Attachment and the custom resource peering attachment Accepter.

For deployment of the stack Sceptre is used.

Deploy the minimal stack

sceptre launch transit-gateway-peering-minimal

Destroy the minimal stack

sceptre delete transit-gateway-peering-minimal

Full

This is a full stack, which includes everything from the minimal stack and adds a VPC, EC2 and routes to be able to perform a ping test from both the EC2 instances.

For deployment of the stack Sceptre is used.

Deploy the Full stack

sceptre launch transit-gateway-peering-full

Destroy the Full stack

sceptre delete transit-gateway-peering-full

Connect to the EC2 instance

To get access to the EC2 instances deployed with the 'full' stack you can use SSM. read more about it here

transit-gateway-peering-accepter's People

Contributors

tiborhercz avatar

Watchers

 avatar  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.