Git Product home page Git Product logo

aws-starter-kit's Introduction

cfn-starter-kit

This project contains a reference implementation (starter template and setup instructions) for an "infrastructure continuous delivery" architecture using GitHub, AWS CodePipeline and CloudFormation.

Getting Started

  1. Fork this repo.
  2. Bootstrap the CloudFormation stack: a. a. Launch Stack b. Enter the forked repo's owner in the GitHubOwner field. c. Create a New personal access token with repo and admin:repo_hook scopes, and enter the token in the GitHubToken field. d. Enter the name of an existing S3 bucket for storing pipeline artifacts in the ArtifactBucket field. (Create a bucket first if necessary.)
  3. Verify the newly-created stack and pipeline. a. Check the CloudFormation Console to ensure your stack reaches the CREATE_COMPLETE state successfully. b. Check the CodePipeline Console to ensure the pipeline's Source and Deploy stages both completed successfully.
  4. Update the CloudFormation stack: a. Modify cfn-template.yml in the Git repository and commit/push the change. b. For example, try renaming Topic to NewTopic.
  5. Verify the stack update. a. Check the CodePipeline Console to ensure the pipeline processes the new commit in both stages. b. Check the CloudFormation Console to ensure your stack reaches the UPDATE_COMPLETE state successfully. c. Verify the created/updated resources. For example, check the SNS Topics Console for the newly-created NewTopic resource.

That's it!

Note: The CloudFormation Service Role (CFNRole) allows full permissions ('*'). For more restricted, fine-grained security, you should move the CFNRole and PipelineRole resources into a separate CloudFormation stack, reference them using Fn::ImportValue, and ensure that CFNRole grants least privilege.

References

Talk from re:Invent 2016, "Infrastructure Continuous Delivery Using AWS CloudFormation"

aws-starter-kit's People

Contributors

wjordan avatar

Stargazers

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