Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS api gateway setting custom domain

I'm using the API Gateway service to manage my spring boot resources. I want to point the gateway to my sub-domain. I tried adding it to alias in Route 53 but it does not work. There's an option in the API Gateway console which asks for my domain and some credentials. I don't know if a sub-domain can work and what should i add to certificate input. Probably it is asking for an SSL certificate and I am ready to purchase one, but before i do that, i want to be sure that it accepts sub-domains.

like image 605
Ansh Agarwal Avatar asked Sep 10 '15 06:09

Ansh Agarwal


People also ask

How do I add a domain to AWS API gateway?

Request or import an SSL/TLS certificate Before creating a custom domain name for your API, you must do one of the following: Request an SSL/TLS certificate from AWS Certificate Manager (ACM). Import an SSL/TLS certificate into ACM. Note: For more information, see Getting certificates ready in AWS Certificate Manager.

How do I add my own domain to AWS?

Sign in to the AWS Management Console and open the Amplify console . Choose your app that you want to add a custom domain to. In the navigation pane, choose App Settings, Domain management. On the Domain management page, choose Add domain.

Does API gateway change URL?

Whenever the Serverless 1.0-style CloudFormation stack is removed and recreated, API endpoint URLs also change. This is very undesirable when those URLs have been configured e.g. into front-end web applications and other integration points who expect the URLs to remain constant.


1 Answers

Yes, API Gateway supports subdomains. You can try with self-signed certificate and see the options.

See the official documentation on using Custom Domain Names in API Gateway.

like image 186
adamkonrad Avatar answered Oct 11 '22 03:10

adamkonrad