2017 © Pedro Peláez
 

library opsworks-deploy

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

image

silinternational/opsworks-deploy

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

  • Friday, April 24, 2015
  • by fillup
  • Repository
  • 2 Watchers
  • 4 Stars
  • 898 Installations
  • Shell
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

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., (*1)

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., (*2)

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., (*3)

Usage:, (*4)

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

Example:, (*5)

$ ./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., (*6)

The Versions

24/04 2015

dev-master

9999999-dev https://github.com/silinternational/opsworks-deploy

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

  Sources   Download

MIT

aws amazon web services opsworks