Skip to content

Latest commit

 

History

History
 
 

lambda-java-calculator

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

AWS Lambda Java Calculator

Sample Java project on AWS Lambda

Project Build

sam build

Local Testing

sam local invoke -e events/test.json

Local Debugging

sam local invoke -e events/test.json -d 5005

Note: (IntelliJ) Run -> Debug... -> Remote JVM Debug

Lambda Deployment

sam deploy --stack-name java-calculator --guided

Log Monitoring

sam logs --stack-name java-calculator --tail

Lambda Invocation (AWS CLI)

aws lambda invoke --function-name java-calculator --payload file://events/test.json --cli-binary-format raw-in-base64-out /tmp/java-calculator.out

Delete Deployment

sam delete

Reference

https://docs.aws.amazon.com/lambda/latest/dg/lambda-java.html