Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes: #23
@vkurup This is the simplest possible change I could think of to add support for an ELB, though I'm on the fence about whether this or the "fully featured" option (with multiple Dokku instances and an auto scaling group) is a better default. We could still do the latter but keep the default instance count at 1. I feel like the EC2 instances option and the Dokku option are similar conceptually and should probably use much of the same code (whether that includes the auto scaling group or not).
One complicating factor is that supporting N instances without an auto scaling group is somewhat of a mess: https://stackoverflow.com/questions/5251934/how-to-create-variable-number-of-ec2-instance-resources-in-cloudformation-templa
Updated 10/13/17: I've switched this to use a load balancer and auto scaling group all the time. It's nice to have a DNS name (for the ELB) to point things to, in addition to the SSL cert of course.