Skip to main content

Makes handling multi-stack deployments to CloudFormation a bit easier

Project description

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Description: cfnbot
======

Make managing CloudFormation stacks a little friendlier.

**Still very much a work in progress**

Install
~~~~~~~

::

$ pip install cfnbot

Usage
~~~~~

::

# First, write a specfile. See `example_specfile.yml` for more info.
$ cfnbot deploy [--debug] /path/to/specfile.yml [--stackset <name>]
$ cfnbot delete [--debug] /path/to/specfile.yml [--stackset <name>]

Specfile Formats
~~~~~~~~~~~~~~~~

Single Stack
^^^^^^^^^^^^

One top key only, which can't be "Default" or "Stacks". Must contain a
TemplatePath.

::

---
SomeAppBucket:
TemplatePath: 'bucket.yml'
Parameters: [...]

Multiple Stacks
^^^^^^^^^^^^^^^

One top key only, "Stacks", and its value must be a list. For example:

::

---
Stacks:
- SomeAppBucketRole:
TemplatePath: cfn/iam_role.yml
Parameters: [...]
- SomeAppBucket:
TemplatePath: cfn/s3bucket_with_roles.yml
StackName: SomeAppBucket
Parameters: [...]

Stack Sets
^^^^^^^^^^

ALL THE THINGS. Need a Default in there somewhere, and it needs a Stacks
list.

::

---
Dev:
StackNamePrefix: Dev
CredentialProfile: default
Stacks:
- SomeAppBucketLambdaRole
TemplatePath: cfn/iam_role_dev.yml
Default:
Stacks:
- SomeAppBucketRole:
TemplatePath: cfn/iam_role.yml
Parameters: [...]
- SomeAppBucket:
TemplatePath: cfn/s3bucket_with_roles.yml
StackName: SomeAppBucket
Parameters: [...]

Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: Topic :: Software Development :: Build Tools
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: System :: Distributed Computing
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6

Project details


Download files

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

Source Distribution

cfnbot-1.0.0.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

cfnbot-1.0.0-py2.py3-none-any.whl (12.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file cfnbot-1.0.0.tar.gz.

File metadata

  • Download URL: cfnbot-1.0.0.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cfnbot-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6ba24046773c01c954cf0d964b564da717cd41d353a87420d9f9220555413e56
MD5 c44add1d3e95cd2f9de4e3efaed9d2e4
BLAKE2b-256 93a7a719de9008fa5e6e59e0f821b55f59fa38a64472827615ace6b94377029d

See more details on using hashes here.

File details

Details for the file cfnbot-1.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for cfnbot-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5ae1113afb1e96e5a7887e3a7b238622300f9b2c6dbec385a3cbf1a6d6cd98bb
MD5 c12fda2ca8b2095fdadc16a6e8693c37
BLAKE2b-256 9adf312a8ebec9a9f6a7961c3b4a726c0eb4b1fff07a274efd338c1bdeb02cc5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page