Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

No project description provided

Project description

Opsworks Tool

A tool to create and deploy Opsworks stacks to AWS.

Current version - 0.0.1:

  • Create a new Python 2.7 AWS Opsworks from included template.
  • Deploy AWS Opsworks created with this tool. It generates a CloudFormation file and creates a stack from that template.


Create a new opsworks stack:

Usage: opsworkstool new [OPTIONS]

  -d, --directory TEXT  target directory for new Opsworks recipe, defaults to
                        current directory
  -n, --name TEXT       name of the new opsworks skeleton  [required]
  -p, --profile TEXT    AWS CLI profile to use in the deployment, more details
  -r, --region TEXT     target region, defaults to your credentials default
  --debug               Turn on debugging
  --help                Show this message and exit.

opsworkstool -sn example --region us-east-2 # make a Flask webservice in example/

Create a new opsworks template:

Usage: opsworkstool deploy [OPTIONS]

  -d, --directory TEXT  scratch directory for deploy, defaults to /tmp
  -p, --profile TEXT    AWS CLI profile to use in the deployment
  -r, --region TEXT     target region, defaults to your credentials default
  --help                Show this message and exit.

opsworkstool new --name test --profile will --directory /tmp/junk --region us-east-1

More details on AWS profile credentials here.

What just happened

  • This just created the needed files
├── config
│   ├── config.ini
│   └── dev
│       └──
├── recipe
│   ├── Berksfile
│   └── test
│       ├── attributes
│       │   └── default.rb
│       ├── files
│       └── recipes
│           ├── default.rb
│           └── setup.rb
├── template.json
└── utility

The next steps

  • Edit the template.json as needed, and edit the config/config.ini for the parameters for the needed stage. Note: The default state is dev
  • Edit the recipe/test/recipe/setup.rb recipe

Deploying the Opswork template

opsworkstool deploy --profile will -s dev

What you will need:

  • An AWS account
  • A VPC setup in that account (or access to create one). See more about AWS default VPC here.
  • At least one subnet in that account (or access to create one)
  • An IAM role to assign to the opsworks instance. If you do not have a suitable IAM role you can get some idea here.
  • A very simple security group
  • An S3 bucket where you can put build/deployment artifacts. This bucket must be in the same AWS region as your function.
  • A minimal Python 2.7 development environment including virtualenv or virtualenv wrapper

Project details

Release history Release notifications

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for OpsworksTool, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size OpsworksTool-0.0.2-py2.py3-none-any.whl (21.7 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size OpsworksTool-0.0.2.tar.gz (15.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page