[20170606013346] App Parameter Consolidation and Build Image Cleanup

CloudFormation Listener Parameters

Due to a hard limit of 60 CloudFormation parameters for any stack, there is an upper limit of how many service types and port mappings you can define for an app.

Previous to this release a complex app with 20 different service types (web, api, queue and multiple worker types) that might have many different port mappings (HTTP, HTTPS and internal TCP), could have trouble deploying.

This release reduces the number of CF parameters for an app by combining a service port and certificate into a single parameter.

Before:

WebPort80Host=17174
WebPort80Certificate=
WebPort443Host= 56742
WebPort443Certificate=arn:aws:iam::132866487567:server-certificate/cert-dev-east-1479341785-53506

After:

WebPort80Listener=17174,
WebPort443Listener=56742,arn:aws:iam::132866487567:server-certificate/cert-dev-east-1479341785-53506

Clean Up Old Build Images

At the end of a successful build, the build script now cleans up images from old builds. This should help prevent the Docker volume from filling up to 100% which causes a devicemapper error.