3
votes

I am trying to map my api to custom domain. Let's say I have a website hosted through route 53 (example.com ), then I want my the api to be at api.example.com. So, I am following this link, I did everything as it said. But, when I do https://api.example.com/apiresource ,it says cannot resolve DNS. So, I am not sure if I have to setup another hosted zone for api.example.com and create NS record set ? The documentation doesn't say about it. I would appreciate any help.

1
Including this part in Route 53? Carefully review your configuration there, for any errors. A common error is typing api.example.com instead of just typing api in the box at the top (.example.com is implied). Obviously, the djozxyqkexample.cloudfront.net value will be the one you got from API Gateway, not the one in the example. - Michael - sqlbot

1 Answers

1
votes

I solved it by creating host zone for api.example.com.