I have 3 regional API Gateways deployed as service API. I want to map all three API Gateways to single custom domain name.
I tried to do it with terraform but could not figure out what resource to use.
Also I already have Custom hosted zone on route 53 for. eg. foo.bar.com. I am confused should I add all three API ARN to single CNAME (service.foo.bar.com) under hosted zone OR to add some terraform resource to add service.foo.bar.com/service to each API gateway under custom domain names for API GW.
B ) do I need to do both? I want to configure CNAME to be latency based so that it calls the best latency API gateway out of 3. Any guidance or links would be great to start.
C ) Or should I set up 3 CNAME records with same name and different regions specific to api gateway regions all having latency based routing setup?