On AWS, I have multiple apis. Using domain mapping I then bind to a single custom domain. From here I can set up a datasource in appsync to forward all requests to this single domain.
I have a docker-compose setup. I have managed to set it up so that api gateway is able to reach each of my microservies. I can then reach my microservice through localhost:4566/restapis/some-api-id/v1/_user_request_/some/path
. I have created a domain example.some-domain.net
and mapped it to some-api-id
.
My question is how do I access my api through a single point (example.some-domain.net
). I am expecting something like localhost:4566/domain/example.some-domain.net/v1/_user_request_/some/path
. Then I would create a datasource for example.some-domain.net
in appsync.
Any help would be greatly appreciated