aws-samples / startup-kit-templates

CloudFormation templates to accelerate getting started on AWS.
Apache License 2.0
815 stars 400 forks source link

Replace the ELB Classic with an ALB and add support for TLS #11

Closed rnzsgh closed 7 years ago

rnzsgh commented 7 years ago

This PR removes the ELB classic and replaces it with an Application Load Balancer (ALB).

Additionally, it adds parameters for some of the previously hard-coded values (i.e., instance types, autoscaling counts). The parameter defaults match the previous hard-coded values.

Lastly, it adds support for TLS if you pass in a SSLCertificateArn parameter. The VPC template was recently modified to support ports other than 80 (thus opening the door for TLS/443).

I will update the docs in a subsequent PR to cover the vpc and app changes.

This has been tested with the startup-kit-nodejs and the eb-python-flask apps. It was tested with TLS, without, with a single instance and multiple instances.