Service discovery options with fargate

Hello,
The book was awesome! I had hoped to find examples of setting up service discovery with fargate. I need a few containers to register their private IP address on boot so that other containers can find them. Can you give examples of options along with cloudformation snippets?

Thank you,

Michael

Hi Michael,

Thanks four your feedback!

We don’t have support for service discovery via AWS Cloud Map yet. A workaround was discussed a few days ago here where a reader had a similar request than yours: How to enable Service to service communication

Can you share a picture of the architecture you have in mind to help me better understand your use case?

Thanks
Michael

I’ll check that out. Last night I found this: https://containersonaws.com/architecture/private-service-discovery/

This does the trick for now.

Thank you,
Michael

1 Like

I have a similar use case whereby I have a number of Kafka Producers which need to publish Avro schemas to a schema registry also deployed in Fargate. I needed a way of addressing one or ore healthy instances of these using service discovery.

1 Like