title: How to connect serverless lambda functions to custom domain
body: <p>I generated a free ssl certificate from <a href="https://www.sslforfree.com/" rel="nofollow noreferrer">sslforfree</a> to host my lambda functions to <a href="https://api.ansaar.in/" rel="nofollow noreferrer">api.ansaar.in</a> whose DNS is managed by GoDaddy.</p>
  
  <p>I have a <a href="https://serverless.com/" rel="nofollow noreferrer">serverless</a> AWS Lambda APIs project. I intend to deploy it on a custom domain.</p>
  
  <p>The custom domain's <a href="https://stackoverflow.com/a/58772711/2404470">SSL certificates were imported successfully</a>.</p>
  
  <p>As suggested by <a href="https://serverless.com/blog/serverless-api-gateway-domain/" rel="nofollow noreferrer">serverless blog</a> successfully ran <code>sls create_domain</code></p>
  
  <p><a href="https://i.stack.imgur.com/8vSTi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8vSTi.png" alt="sls create_domain"></a></p>
  
  <p><code>sls deploy</code> run seems successfully too:</p>
  
  <p><a href="https://i.stack.imgur.com/pRYhE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pRYhE.png" alt="serverless deploy"></a></p>
  
  <p>Now, whenever I hit <a href="https://api.ansaar.in/" rel="nofollow noreferrer">api.ansaar.in</a> - it doesn't work at all.</p>
  
  <p>What is the problem here?</p>