HACKER Q&A
📣 xameeramir

How to connect serverless lambda functions to custom domain?


I generated a free ssl certificate from sslforfree to host my lambda functions to api.ansaar.in whose DNS is managed by GoDaddy.

I have a serverless AWS Lambda APIs project. I intend to deploy it on a custom domain.

The custom domain's SSL certificates were imported successfully.

As suggested by serverless blog successfully ran sls create_domain

sls create_domain

sls deploy run seems successfully too:

serverless deploy

Now, whenever I hit api.ansaar.in - it doesn't work at all.

What is the problem here?


  👤 lubos Accepted Answer ✓
You will need to setup Amazon API Gateway which will give you http/https end point for your Lambda function.