I'm trying to launch a zookeeper cluster in AWS using Container Services. Using the base "zookeeper" docker image. There are two issues I'm currently having.
1) Zookeeper requires an "ZOO_MY_ID" variable to be set. When I run at home this variable is populated as numbers 1, 2, etc in the docker compose file. How can I set environment variables in ECS that would be incremented for every task started?
2) Zookeeper node needs to know its peers. It is set by "ZOO_SERVERS= server.1=10.0.0.1:2888:3888 server.2=10.0.0.2:2888:3888" variable. With the ip addresses assigned randomly how should I configure the zookeeper node so that it would discover its peers?
Thanks, Ruben