question

Spai-1898 avatar image
0 Votes"
Spai-1898 asked MayankBargali-MSFT edited

Can we replace AWS API Gateway with Azure APIM in front of AWS Lambda Functions

Hi, our team is facing API from AWS and is curious if we can replace AWS API Gateway with Azure APIM in front of AWS Lambda Functions.

It seems lambda needs AWS API Gateway to expose as API, not sure what's the difference between Azure APIM and AWS API Gateway since they are both API Gateway

Can some experts help to explain ? Thank you

azure-api-management
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MayankBargali-MSFT avatar image
0 Votes"
MayankBargali-MSFT answered MayankBargali-MSFT edited

Hi @Spai-1898

I have done some research and looks like AWS API Gateway is the only way to expose your lambda function over HTTP/HTTPS.
Reference: https://stackoverflow.com/questions/29877220/invoke-a-aws-lambda-function-by-a-http-request

<SNIP>
Q: How do I invoke an AWS Lambda function over HTTPS?

You can invoke a Lambda function over HTTPS by defining a custom RESTful API using Amazon API Gateway. This gives you an endpoint for your function which can respond to REST calls like GET, PUT and POST. Read more about using AWS Lambda with Amazon API Gateway.
</SNIP>

Reference: https://aws.amazon.com/lambda/faqs/

If the AWS lambda function would have exposed over HTTP/HTTPS without AWS API gateway then in that case you could use APIM. If you want to learn more about APIM you can start with this article.

Feel free to get back to me if you have any queries or concerns.

Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you @MayankBargali-MSFT for such detailed investigation.

1 Vote 1 ·

hello. good answer but because of a typo it becomes confusing

"If the AWS lambda function would have exposed over HTTP/HTTPS without AWS API gateway then in that case you can use APIM"

Correct to: "If the AWS lambda function would have exposed over HTTP/HTTPS without AWS API gateway then in that case you could use APIM"

I suggest also using a title for the paragraph as:
"
Conclusion:
If the AWS lambda function would have exposed over HTTP/HTTPS without AWS API gateway then in that case you could use APIM"

0 Votes 0 ·