Skip to content

Quick and simple CloudFormation stacks for deploying common AWS infrastructure with minimal fuss. Basic functionality that works out of the box.

License

Notifications You must be signed in to change notification settings

watsonarw/aws-cloudformation-quick-stacks

Repository files navigation

aws-cloudformation-quick-stacks

Quick and simple CloudFormation stacks for deploying common AWS infrastructure with minimal fuss. Basic functionality built in that works out of the box.

What

This repository contains Cloudformation templates wrapped in easy to use shell scripts for provisioning common infrastructure. Each template comes with:

  • A shell script for deploying the stack to your AWS account
  • Basic functionality that works out of the box for most use-cases

Supported Stacks

Usage

Synopsis

# Deploy the stack and create the infrastructure
./stacks/<stack-type>/up [options]
# Describe a stack and get helpful next steps
./stacks/<stack-type>/describe --stack-name <name>

Common flags

Stack name

By default, stacks will have a stack name derived from their inputs.

To give a stack a specific name, use the --stack-name flag:

./stacks/<stack-type>/up [options] --stack-name "my-stack-name"

Tags

Tags can be added to the CloudFormation stack (which will automatically tag all supported resources in the stack) with the --tag or --tags flags:

stacks/<stack-type>/up example.com --tag "Environment=production" --tag "Team=MyTeam"

stacks/<stack-type>/up example.net --tags "Environment=production Team=MyTeam"

These flags can be combined and used multiple times, and all tags will be applied. e.g. the following are equivalent

stacks/<stack-type>/up example.com --tag "Environment=production" --tags "Domain=web Product=web" -tag "Team=MyTeam"
stacks/<stack-type>/up example.com --tags "Environment=production Domain=web Product=web Team=MyTeam"

When CloudFormation applies the tags, the last value for the key will be set.

stacks/<stack-type>/up example.com --tags "Environment=test Environment=production"

will set the Environment tag with the value production

Prerequisites

  • These scripts require aws-cli installed to run. (Hint: install it with mise - mise install)

About

Quick and simple CloudFormation stacks for deploying common AWS infrastructure with minimal fuss. Basic functionality that works out of the box.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Languages