Powertools for AWS Lambda (Java) is a developer toolkit to implement Serverless best practices and increase developer velocity.
Also available in Python, TypeScript, and .NET.
📜Documentation | Feature request | 🐛Bug Report | Detailed blog post
Powertools for AWS Lambda (Java) is available in Maven Central. You can use your favourite dependency management tool to install it
<dependencies>
...
<dependency>
<groupId>software.amazon.lambda</groupId>
<artifactId>powertools-tracing</artifactId>
<version>1.18.0</version>
</dependency>
<dependency>
<groupId>software.amazon.lambda</groupId>
<artifactId>powertools-logging</artifactId>
<version>1.18.0</version>
</dependency>
<dependency>
<groupId>software.amazon.lambda</groupId>
<artifactId>powertools-metrics</artifactId>
<version>1.18.0</version>
</dependency>
...
</dependencies>
Next, configure the aspectj-maven-plugin to compile-time weave (CTW) the aws-lambda-powertools-java aspects into your project. A different configuration is needed for projects on Java 8.
Powertools for AWS Lambda (Java) supports all Java version from 8 up to 21 as well as the
corresponding Lambda runtimes.
For the modules that provide annotations, Powertools for AWS Lambda (Java) leverages the aspectj library.
You may need to add the good version of aspectjrt
to your dependencies based on the JDK used for building your function:
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId>
<version>1.9.??</version>
</dependency>
See the latest release of the examples for example projects showcasing usage of different utilities.
Have a demo project to contribute which showcase usage of different utilities from powertools? We are happy to accept it here.
Knowing which companies are using this library is important to help prioritize the project internally. If your company is using Powertools for AWS Lambda (Java), you can request to have your name and logo added to the README file by raising a Support Powertools for AWS Lambda (Java) (become a reference) issue.
The following companies, among others, use Powertools:
#java
- Invite linkIf you think you’ve found a potential security issue, please do not post it in the Issues. Instead, please follow the instructions here or email AWS security directly.
This library is licensed under the Apache License, Version 2.0. See the LICENSE file.