GithubHelp home page GithubHelp logo

isabella232 / opsworks-deploy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from silinternational/opsworks-deploy

0.0 0.0 0.0 4 KB

Shell script to initiate and monitor OpsWorks application deployments using AWC CLI scripts

License: MIT License

Shell 100.00%

opsworks-deploy's Introduction

opsworks-deploy

Shell script to initiate OpsWorks application deployments using AWC CLI scripts. We use this script as part of our continuous deployment to initiate the deployment on OpsWorks and then monitor for the results.

After initiating a deployment it will continue to check the status of that deployment and monitor for success or fail. The script will exit with status 0 on success.

We're open to enhancements so please submit pull requests or ideas if you have them. So far this is pretty quick and dirty, but works pretty well.

Usage:

./opsworks-deploy <aws-region> <stack-id> <application-id>

Example:

$ ./opsworks-deploy us-east-1 1234-sdfhjkuytfdcxswerfgvbnk-23456 2234-akflshfiwefjnfsfdsdffs-111
Deployment initiated, ID: 12f01234441-6fsb-4b70-8bba-43012312374c
Attempt #0 of 30...
Current Status: running
Attempt #1 of 30...
Current Status: running
Attempt #2 of 30...
Current Status: running
Attempt #3 of 30...
Current Status: running
Attempt #4 of 30...
Current Status: running
Attempt #5 of 30...
Current Status: running
Attempt #6 of 30...
Current Status: running
Current Status: successful
Deployment completed successfully!

AWS CLI tools

This script makes use of the Amazon Web Services command line interface tools. They can be installed by running pip install awscli. The tool expects environment variables to be set for AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY. These you get from AWS when you create a deployment IAM user.

opsworks-deploy's People

Contributors

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