Adding an endpoint to your Lambda function
Open the Functions page of the Lambda console.
Choose a function.
Under Function overview, choose Add trigger.
Select API Gateway.
Choose Create an API or Use an existing API. New API: For API type, choose HTTP API. ...
For Security, choose Open.
Choose Add.