I want to run a kafka connect multi node cluster in ECS (ec2 type).
In order for kafka-connect nodes in the same cluster to communicate I need to set up the REST_ADVERTISED_HOST_NAME property to be the ip / hostname of the ec2 instance that the ecs task is running on.
This property should be different for each kafka-connect node (running as ECS task)
when I increase the number of tasks in the ECS service, how can I setup a different REST_ADVERTISED_HOST_NAME for every task? under the hood, the tasks could be running on the same ec2 instance
Currently this property is hardcoded in the connect-distributed.properties or passed as an environment variable in the task definition, and so its the same for every new task (or connect node) that is created