Thiago Nascimento
Thiago Nascimento

Reputation: 1155

Mapping custom domain to GCP API Gateway

I've set up an api using GCP API Gateway to map api calls to multiple Cloud Run services but now I need to point a custom domain to the API gateway. I see that there's no option to do so like in Cloud Run and I also tried setting a CNAME record pointing to the gateway's url but I didn't work.

Is their anyway I can set the domain name of the gateway?

Upvotes: 3

Views: 1811

Answers (1)

Daniel Ocando
Daniel Ocando

Reputation: 3764

As advised on the relevant section of the documentation:

Custom domain names are not supported for API Gateway. If you want to customize the domain name, you have to create a load balancer to use your custom domain name and then direct requests to the gateway.dev domain of your deployed API.

Upvotes: 6

Related Questions