Skip to main content

Opinionated AWS CloudFormation Stack manager

Project description

stacker
=======

# About

stacker is a tool and library used to create & update multiple CloudFormation
stacks. It was originally written at [Remind](https://www.remind.com/) and
released to the open source community.

stacker StackTemplates are written in [troposphere][], though the purpose of
most templates is to keep them as generic as possible and then use
configuration (and CloudFormation Parameters/Outputs) to modify them.

At this point this is very much alpha software - it is still in heavy
development, and interfaces/configuration/etc may/will likely/most definitely
change :)

# Example

We've provided an example stack in *conf/example.yaml* that can be launched
in your account. It creates 4 stacks:

- A VPC (including NAT hosts in each AZ)
- A bastion stack (for ssh'ing into other stacks on the VPC)
- A RDS stack (postgres)
- An autoscaling group stack

The size of most of these is m3.medium, but you can change that in the config
if you'd like to play with something smaller. To launch the stacks, after
installing stacker and loading your AWS API keys in your environment
(AWS\_ACCESS\_KEY\_ID & AWS\_SECRET\_ACCESS\_KEY), call the following:

```
stacker -v -r us-east-1 -d example.com -p CidrBlock=10.128.0.0/16 conf/example.yaml
```

Here's some explanation of what each argument does:

```
stacker -v -r us-east-1 # Launch with verbose set, in the us-east-1
# region
-d example.com # Setup the example.com domain in Route53,
# gets used as BaseDomain in the parameter
# list of all stacks
-p CidrBlock=10.128.0.0/16 # This network will be split up into the
# various subnets
conf/example.yaml # The yaml stack definition file
```

As of now there is no option to tear down the stack in the tool (we plan to
add it), so you'll need to tear the stacks it creates down manually. When doing
so, it's important that you tear down all the stacks BUT the VPC stack first,
since they all depend on the VPC stack. Once they are torn down, you can safely
tear down the VPC stack. If you try deleting them all (including VPC) in one
swoop, you'll see that VPC stack gets hung up while waiting for the others to
tear down.

[troposphere]: https://github.com/cloudtools/troposphere

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

stacker-0.1.1.tar.gz (15.3 kB view hashes)

Uploaded Source

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