Open kjpgit opened 2 years ago
To add insult to injury, when you select "SRV" it still creates A records, but they're not usable by normal clients. At least, I don't think they're usable, because they have a very random prefix.
e.g. a SRV record points to an A record like f712d9193f964d158b438c4943773e09.api.cps-dev.mycompany.com
We released ECS Service Connect which specifically addresses this problem. In Service Connect you provide a discoverable name for each of the containers / ports that you want to address. Even though it doesn't use Route 53 DNS and resolves the DNS at the client-side proxy level, it should address your use-case. And you can create an API Gateway's HTTP API that points to ECS Service Connect service.
The request was for low latency and overhead from an ec2 instance client, using standard DNS. No desire for proxies or service connect in this case.
I have a fargate service.
It's frustrating that both record types aren't supported.
Alternatively, if api gw could just use A records...that would work for us.