Search code examples
aws-lambdaaws-api-gatewaycustom-domain

Can map custome domain to AWS Lambda Function without API Gateway


I'm new to work with AWS now, my first approach is AWS Lambda, so:

  • Can we call AWS functions directly without AWS API Gateway?

  • Can we map Domain to function URL without AWS API Gateway?


Solution

  • Can we call AWS functions directly without AWS API Gateway?

    You can call Lambda functions directly through the lambda:Invoke API-call, but that requires you having valid credentials to your AWS Account and the required permissions to do that.

    Can we map Domain to function URL without AWS API Gateway?

    No, Lambda basically runs code in response to events and there are two ways to get it to respond to HTTP(S) events:

    You can set up your custom domain with both the API Gateway and an application load balancer though.