Can AWS Lambda act as an API?

Viewed 58

Trying to figure out the differences. Can AWS Lambda act as an API or vice versa? Would I still need to setup an API if I wanted to use Lambda functions or can I use Lambda functions right from the get go?

3 Answers

Alternatively, you can do it by setting a Function URL to your lambda.

It will require changes in how you receive input and send the output for the lambda and also has some limitations related to authentication. Still, it would be a more self-contained approach than the API Gateway integration if you need to expose your API publicly.

Lambda functions can now be accessed directly with a Function Url. They have minimal functionality when compared to Amazon API Gateway.

However, since the integration event is effective the same. It is very easy to go from Function Urls to API Gateway or ALB in the future if you require greater functionality.

Related