Hi,
I am trying to setup consul behind AWS ELB. I have the following working pieces:
1) Consul service init script (/etc/init/consul)
2) Script (consul-elb) that pulls all the ips behind the ELB and outputs them into a json file, e.g.:
{
"retry_join": [
"172.15.1.15",
"172.19.0.159"
]
}
3) If i run first consul-elb and after this start consul, I see all the members properly.
What i miss is a seamless integration between these two. I want whenever the ELB resizes, the consul members to be removed, instead of marked as failed (based on the json file which is generated from consul-elb). I looked into 'consul watch' along with 'nodes', but i am not sure what will be the syntax for this. I do not want to use a cronjob for this. Any ideas/suggestions?
Thanks,
Izo