When you deploy your Serverless application with API Gateway, AWS auto-generates an URL for you with a default AWS domain. In an upcoming post we’ll be looking at how to manage custom domains for your Serverless API.

You’ll recall that the auto-generated API Gateway endpoints have the following format:


In this post we’ll look at how you can purchase your own domain name hosted on Amazon Route 53. And in the next post we’ll look at how to update your Serverless app to use your new custom domain so that your API Gateway endpoints look like this:


Amazon Route 53 is a highly available and scalable cloud Domain Name System (DNS) web service. However, you can use it to buy and manage domains as well.

Let’s look at how to do that.

Purchase a domain using Route 53

You can purchase a domain right from the AWS Console by heading to the Route 53 section in the list of services.

Select Route 53 in list of AWS services

Type in your domain in the Register domain section and click Check.

Check for domain availability in Route 53

After checking its availability, click Add to cart.

Add new domain to cart in Route 53

And hit Continue at the bottom of the page.

Continue add to cart in Route 53

Fill in your contact details and hit Continue once again.

Fill in contact details to purchase Route 53 domain

Finally, review your details and confirm the purchase by hitting Complete Purchase.

Confirm Route 53 domain purchase

And that’s it! In the next post, we’ll look at how to configure your app to use the new domain.