Skip to content

Creating an empty stack in cloudformation to reduce the errors on creation.

License

Notifications You must be signed in to change notification settings

amarentis-stelligent/empty-stack

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

empty-stack

This repository was created to support a blog article about removing errors on CloudFormation stack creation. By creating a stack with no infrastructure (an empty stack), then updating the stack with infrastructure, the stack will never be in a state where a stack cannot be updated. Thus, all errors are moved from the creation process to the update process, which currently has a much more robust rollback process.

The slt.sh file is to assist with linting and security best practices. slt stands for Scan and Lint Template.

Installation

Download requirements:

pip install -r requirements.txt

Example usage

Example usage without parameters file:

python3 empty_stack.py --name test-vpc --template vpc.yaml

Example usage with parameters file:

python3 empty_stack.py --name test-vpc --template vpc.yaml --parameters params.json

Example usage to just create the stack without infrastructure:

python3 empty_stack.py --name test-vpc

Example usage with iam capabilites required:

python3 empty_stack.py --name test-vpc --template vpc.yaml --iam

Example usage with aws-vault:

aws-vault exec your_profile -- python3 empty_stack.py --name test-vpc

Further documentation

About

Creating an empty stack in cloudformation to reduce the errors on creation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.4%
  • Shell 0.6%