Git Product home page Git Product logo

aws-cfn-bootstrap-docker's Introduction

aws-cfn-bootstrap

Bootstrap AWS ec2 with CloudFormation and Docker

GitHub | DockerHub

Summary

The host is requried to have docker installed. This can be done with UserData either through cloud-init or a shell script.

Once docker is available this image can be run with:

docker run \
  -v /var/run/docker.sock:/var/run/docker.sock
  -e [AWS_DEFAULT_REGION=] -e [CFN_METADATA_RESOURCE=] -e ...
  sungardas/aws-cfn-bootstrap

The container will interface with CloudFormation, can access CloudFormation Metadata and is able to respond to a CreationPolicy or WaitCondition.

Useful for implementations that only run Docker containers and for minimal operating systems like rancheros

AWS::CloudFormation::Init can contain run docker which is linked to the host. Images will be pulled and run by the host docker engine.

Docker Version

This project creates tags for different versions of docker. Use a tag that matches the version of docker the host is running.

sungardas/aws-cfn-bootstrap:1.9
sungardas/aws-cfn-bootstrap:1.10
sungardas/aws-cfn-bootstrap:1.11
sungardas/aws-cfn-bootstrap:1.12

Available Commands

The image contians the latest cfn-bootstrap scripts, the ec2-metadata query tool and the aws cli.

Environment Variables

AWS_DEFAULT_REGION - The AWS region to run against.

CFN_CONFIG_SETS - List of config sets to run.

CFN_METADATA_RESOURCE - The resource containing AWS::CloudFormation::Init

CFN_NOTIFY_RESOURCE - The resource to send notification to when complete. Usually one with CreationPolicy defined.

CFN_STACK_NAME - The name of the CloudFormation Stack

ECR_REGISTRY_IDS - If set, will run aws ecr get-login and populate the host docker engine with credentials for ECR. Recommened to use with an ec2 instance profile.

Credits

Inspired by docker-aws

License

Apache-2.0 ©

Sungard Availability Services | Labs

Sungard Availability Services | Labs

This project is maintained by the Labs team at Sungard Availability Services

GitHub: https://sungardas.github.io

Blog: http://blog.sungardas.com/CTOLabs/

aws-cfn-bootstrap-docker's People

Contributors

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