This project contains examples of AWS Lambda functions using idempotency module of AWS Lambda Powertools for Java.
For more information on the module, refer to the documentation.
Each example is located in a separate directory:
- idempotency-api-gw - idempotent Lambda function processing requests sent to the Amazon API Gateway
- idempotency-sqs - idempotent Lambda function processing records read from the Amazon SQS queue
The samples are based on Serverless Application Model (SAM) and you can use the SAM Command Line Interface (SAM CLI) to build and deploy them to your AWS account.
To use the SAM CLI, you need the following tools.
- SAM CLI - Install the SAM CLI
- Java11 - Install the Java 11
- Maven - Install Maven
- Docker - Install Docker community edition
To build and deploy your application for the first time, change the directory to the example you are interested in and run the following commands in your shell.
$ sam build
$ sam deploy --guided
See CONTRIBUTING for more information.
This library is licensed under the MIT-0 License. See the LICENSE file.