Giter Site home page Giter Site logo

the-cf-workshop's Introduction

A workshop to learn AWS CloudFormation

The workshop promotes both the knowledge of CloudFormation concepts and skills, as well as good practices (including Continuous Deployment). For best results, templates should be developed and tested incrementally.

The workshop is structured as a series of code katas (see "https://en.wikipedia.org/wiki/Kata_(programming)")

Instructions

  • Review the goal
  • Engage in some planning to achieve the goal. This may yield a number of stories, similar to these
  • Each story is achieved through a kata. Work through the katas sequentially. While each kata stands on its own, later katas build upon earlier ones.
  • Instructions for each kata are documented independently, beginning with kata 1

Cleaning up afterwards!

  • At any point, you can delete the resources provisioned and avoid incurring costs by deleting the stacks created
    • Deleting a CloudFormation stack deletes all resources provisioned by the stack
  • If you provision any pipelines to deploy other CloudFormation stacks, remember to:
    • delete the stack provisioned by the pipeline first
    • only delete the pipeline (or the stack that provisioned the pipeline) afterwards. The stack provisioned by the pipeline depends upon IAM roles provisioned by the pipeline, and may be left orphaned if the pipeline is deleted first.
    • (to emphasize the above) we will provision stacks that create pipelines with stack termination-protection enabled. You can update-termination-protection to disable it, before deleting such stacks

Pre-requisites

  • an account on Github
  • git version control client
  • AWS account
  • AWS CLI installed and configured with credentials privileged to operate upon CloudFormation and EC2 resources, etc. Specifically:
    • the user should either have privileges to provision the resources in the stack, OR
    • alternatively, the user should be able to iam:PassRole a role that gives CloudFormation the privileges to provision the resources in the stack
  • text editor to edit YAML and JSON files

Organisation

  • Templates and notes for each kata are in a folder in doc named after the kata (say, kata-1)
  • Instructions for each kata are in the HOW-TO.md document (say, HOW-TO)
  • For each kata, a tested template is provided for reference (say, Story 1 template). You may refer to it at the conclusion of the kata.
  • for Continuous Deployment pipelines: tested CloudFormation template and example parameter file to be used to provision stacks for the pipelines are provided
  • You may review the observations accompanying a kata, as you work on it (say, observations). The observations contain links to the public documentation.

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.