I’ve been doing some research this week into this topic, and I can’t quite find the right solution, so I’m interested in hearing from anyone who has maybe overcome this before.
I have a consul environment currently running on EC2 servers. I have recently moved the application, consul-agents from EC2 servers to AWS ECS Fargate. Now, there is a service which contains a core-application containers and consul-agent, consul-template etc… runs as the sidecar container.
Now I am wondering if I can move the Consul-master servers(currently 3 EC2 servers) from EC2 to ECS fargate. If possible, what might be the scenario? Do I need to run consul-server in a completely different ecs fargate cluster?
I’d love ANY assistance that I can get on this topic so I can try to move my project forward.
Currently we do not recommend attempting to run Consul servers on ECS due to concerns around the performance of persistent storage backend available on ECS, which as far as I know is only EFS.
That said, I saw your posts on StackOverflow [1] and Twitter [2] about this same topic. It seems like running Consul on ECS Fargate is a high priority for you. Would you willing to share more info on the scale of your environment, or perhaps speak to our team to discuss your use case in detail?