Ask HN: How to connect serverless lambda functions to custom domain?

1 points by xameeramir ↗ HN
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?

1 comment

[ 1.8 ms ] story [ 15.6 ms ] thread
You will need to setup Amazon API Gateway which will give you http/https end point for your Lambda function.