- An AWS CLI already configure in your machine
- Terraform installed
- JDK 11+ & Maven 3+
- Curl/Postman
Just execute:
cd terraform && terraform init && cd ..
(First time only)sh build_and_deploy.sh
DONE. Now you can try your lambda just executing the last line of the terraform output, it should be something like this:
curl -H 'Content-Type: application/json' -X POST -d '{"name": "Josemy", "greeting":"Hello"}' https://[ACCOUNT_ID].execute-api.[REGION].amazonaws.com/beta/helloworld
Please note: I'm not responsible for any costs incurred within your AWS account :-)
Same code that the one in plain java. I will try a benchmark against that repo.