Some useful scripts and templates for working with AWS.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Some useful scripts and templates for working with AWS.


This is a Cloud Formation template originally based on but I've added automated VPC, subnet, a postgres db, a redis service, and registration of the db with consul.

Basically, if you want to deploy a Dockerized app on ECS this will get you started quickly.

Find more info on the original at


This is a Cloud Formation template that creates a VPC, subnet, and related.


An simple example of a redis task definition for ECS.

A bash script to register a postgres server as a service with consul. Takes two parameters. First the postgres host name, then the postgres port.

AWS Issues

  • If the nginx password is not set properly by the ConsulInstance setup scripts run the folowing on the instance:

      sudo htpasswd -cb /etc/nginx/.htpasswd admin <password> && sudo /usr/sbin/nginx -s reload
  • The Agent Version listed on the Cluster page under the ECS Instances tab should be 1.7.1 or greater. This seams to result in failure to deploy some docker images. Request the agent is updated by clicking through to the agent page and clicking the Update Agent button. You'll want to update the AMI used in the cloud formation script based on the AMI images for agent versions.