Automated, autoscaled, zero-downtime, immutable deployments using plain old bash, Packer, nginx, Node.js, and AWS. Made easy.
Read about this deployment strategy on Pony Foo, and then clone this repository. Copy the scripts, and adjust as needed. A few pointers.
- The application is named
baalin a few places. Change that to your application's name - You need to set a value for
HOSTED_ZONEin thesetupscript. Read the articles on Pony Foo to learn about that - In the
deployscript you can setPRIMAL_IDto an AMI so that your base AMI isn't rebuilt on every deploy - By default,
baalexpects to build your static assets withnpm run build-$NODE_ENV
Relevant Pony Foo articles:
You'll need to install all of the following.
pip install awscli
aws configure
brew install jq
npm install underscore-cli --save-devMIT