- Java version: 8
- Must have Maven installed
- Must have AWS CLI installed
- Create a lambda function on AWS
./create test_lambda org.vap.demo.TestLambda
- arg1: Name of AWS lambda function to create
- arg2: Fully-qualified name of the class where the
handleRequest()
method resides.
- Implement
handleRequest()
method.
- Update the function code by running the
./update
script.
- Run using
./run
and ./rates
scripts.
- Input is in
input.json
file
- The
output.txt
will contain the response from lambda function
aws lambda update-function-code \
--function-name arn:aws:lambda:eu-west-2:242867849850:function:test \
--zip-file fileb://target/aws-lambda-play-1.0.0.jar
aws lambda invoke \
--function-name arn:aws:lambda:eu-west-2:242867849850:function:test \
--payload file://input.json \
--invocation-type RequestResponse \
--region eu-west-2 \
--log-type Tail \
output.txt