This Docker image allows you to (de)register EC2 instances belonging to a specific Consul service with an Amazon Elastic Load Balancer (ELB).
elb-consul image takes all of its configuration from environment variables.
AWS_ACCESS_KEY_ID... Your AWS access key
AWS_SECRET_ACCESS_KEY... Your AWS secret key
AWS_REGION... The AWS region that your load balancer is located in
ELB_NAME... The exact name of your load balancer
CONSUL_SERVER... The IP:PORT to connect to the Consul server (eg: 220.127.116.11.2:8500)
CONSUL_SERVICE... The exact name of the Consul service you want to monitor
You could run only one instance of
CONSUL_SERVICE pair but for high availability purpose, it is recommanded to run two of them.
Internally the Docker image uses a Consul Lock to make sure that only one
elb-consul will be active at anytime.