GithubHelp home page GithubHelp logo

aws-vpc-cfn's Introduction

VPC generated by Cloudformation GitSync

Rationale

When I first heard about Cloudformation's new GitSync feature, I was eager to try it out. In the past I had implemented Continuous Deployment of Cloudformation templates using Sceptre within Github Actions workflows.

Coupled with Cloudformation's rollback, and generally robust capabilities, this was indeed an attractive proposition for continuous IaC deployment.

Details

The stack itself comprises of standard networking components for a 3 tiered VPC designed for hosting a web application: 1 Public Subnet, 2 private subnets, spread across 3 Availability Zones.

Instead of the typically over-priced NAT Gateway offerred by AWS, I have dropped in a cheaper alternative, fck-nat.

Prerequisites

As per the instructions provided by AWS, you will need an IAM Role with at minimum, the permissions to execute Cloudformation functions, and a trust policy which allows Cloudformation to be driven by GitSync.

In addition, however, this stack requires additional permissions which are provided in the file iam_policy.yaml.

You will also need to provision an EC2 keypair for the NAT instance. The one used in this example is named "infrastructure-networking".

Fancy stuff

I used an NPM package cfn-diagram to generate an infrastructure diagram for this stack (in draw.io format). Use the following commands:

npm run generate:vpc:html
npm run generate:vpc:diagram

The results are kinda underwhelming but could probably be improved with some effort.

Verdict

Cloudformation GitSync works as it says on the tin. I got into a fast workflow while troubleshooting issues that arose while developing the stack. I hope to use it for more CFN stacks, and perhaps compare it to the SAM workflow for CFN templates.

aws-vpc-cfn's People

Contributors

dinie avatar

Watchers

 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.