Improved Sidecar and Deployment behavior
This version of the module puts the requirement on the user of the
module to set instances to DRAINING in some fashion. In our case we are
using our sidecar container, which includes a healthcheck which set the
DRAINING State.
updates the sidecar container used.
This keeps this module inline with
FitnessKeeper/terraform-aws-consul-agents
In addition the old version of the module somewhat handled making sure the cluster would survive the instances being cycled under the ASG's by allowing you to span multiple ASG's *and *multiplying the desired task count by two, in this version the desired count is the correct count, so if you ask for a count of 3, you'll get three tasks, and we leave it to another facility to set the instances to draining. In this case, we provide all hooks to do this, but the parameter definitions
still needs to be set correctly if you are using the default sidecar container image. The default setting is ["ecs-cluster"]
which will correctly configure the sidecar to keep an eye on the instance life cycle state, and set the instance to DRAINING in ECS if the instance starts to terminate.