Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 599
Thiago Nascimento Avatar asked Dec 02 '25 06:12

Thiago Nascimento


1 Answers

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.

like image 106
Daniel Ocando Avatar answered Dec 05 '25 14:12

Daniel Ocando



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!