Reputation: 11
Is there any way to invoke AWS Lambda from AWS EC2 backend without using API Gateway? Java Spring Boot is used as the backend.
Previously, the backend (Java Spring Boot) was communicating with AWS Lambda through API Gateway, but I want to communicate with AWS Lambda directly without using API Gateway.
Upvotes: 1
Views: 122
Reputation: 432
You can use the following: https://docs.aws.amazon.com/lambda/latest/dg/lambda-java.html
The fact that it runs from an ec2 is not really relevant for this question but may require you to open up some permissions on the box
Upvotes: 1