Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Merge main into v2 #1477

Merged
merged 81 commits into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
bd03d76
build(deps): bump aws.sdk.version from 2.20.119 to 2.20.120 (#1349)
dependabot[bot] Aug 7, 2023
c5725d1
build(deps-dev): bump software.amazon.awscdk:aws-cdk-lib (#1350)
dependabot[bot] Aug 7, 2023
28b2f1f
build(deps): bump aws.sdk.version from 2.20.120 to 2.20.121 (#1351)
dependabot[bot] Aug 8, 2023
594b788
build(deps): bump aws.sdk.version from 2.20.121 to 2.20.122 (#1354)
dependabot[bot] Aug 9, 2023
bc71586
build(deps): bump aws.sdk.version from 2.20.122 to 2.20.123 (#1355)
dependabot[bot] Aug 10, 2023
e8cd878
build(deps): bump aws.sdk.version from 2.20.123 to 2.20.124 (#1356)
dependabot[bot] Aug 11, 2023
ae58dd6
build(deps-dev): bump software.amazon.awscdk:aws-cdk-lib (#1357)
dependabot[bot] Aug 14, 2023
ef11a64
docs: Adding CDK example (#1321)
AlexeySoshin Aug 14, 2023
6f05396
build(deps-dev): bump org.yaml:snakeyaml from 2.0 to 2.1 (#1344)
dependabot[bot] Aug 14, 2023
f03832b
build(deps): bump org.apache.maven.plugins:maven-compiler-plugin (#1360)
dependabot[bot] Aug 14, 2023
78e8972
build(deps-dev): bump org.junit.jupiter:junit-jupiter (#1362)
dependabot[bot] Aug 15, 2023
3ebd5cc
build(deps): bump aws.sdk.version from 2.20.124 to 2.20.125 (#1361)
dependabot[bot] Aug 15, 2023
adb2a7e
build(deps): bump org.codehaus.mojo:exec-maven-plugin (#1366)
dependabot[bot] Aug 15, 2023
aa40708
build(deps-dev): bump software.amazon.awscdk:aws-cdk-lib (#1368)
dependabot[bot] Aug 15, 2023
bca90c9
build(deps): bump aws.sdk.version from 2.20.125 to 2.20.126 (#1367)
dependabot[bot] Aug 15, 2023
be284e2
build(deps): bump aws.sdk.version from 2.20.126 to 2.20.127 (#1372)
dependabot[bot] Aug 16, 2023
424f888
build(deps): bump aws.sdk.version from 2.20.109 to 2.20.128 (#1377)
dependabot[bot] Aug 17, 2023
29f71dd
fix: Roll log4j shade transformer forwards (#1376)
scottgerring Aug 18, 2023
a0ea4c3
build(deps): bump com.amazonaws:aws-lambda-java-core from 1.2.2 to 1.…
dependabot[bot] Aug 18, 2023
e7fb00c
build(deps): bump aws.sdk.version from 2.20.127 to 2.20.129 (#1380)
dependabot[bot] Aug 18, 2023
cfd45bd
chore:Prep release 1.17.0 (#1381)
jeromevdl Aug 21, 2023
7b0af2c
chore: Fix missing version change pieces (#1382)
scottgerring Aug 21, 2023
018e319
We shouldn't deploy CDK (#1383)
scottgerring Aug 21, 2023
1c84795
build(deps): bump aws.sdk.version from 2.20.129 to 2.20.130 (#1386)
dependabot[bot] Aug 21, 2023
99982d6
Fix batch pom (#1385)
scottgerring Aug 21, 2023
b01e3df
Update to snapshot (#1384)
scottgerring Aug 21, 2023
07c31d3
Fix batch logging (#1387)
scottgerring Aug 21, 2023
869192a
build(deps): bump aws.sdk.version from 2.20.130 to 2.20.131 (#1389)
dependabot[bot] Aug 22, 2023
52a1f48
docs: Change link to absolute versioned path for examples (#1374)
scottgerring Aug 22, 2023
7c3e45b
build(deps): bump aws.sdk.version from 2.20.131 to 2.20.132 (#1390)
dependabot[bot] Aug 23, 2023
9f67d21
build(deps): bump aws.sdk.version from 2.20.132 to 2.20.133 (#1392)
dependabot[bot] Aug 24, 2023
46124b4
build(deps-dev): bump software.amazon.awscdk:aws-cdk-lib (#1373)
dependabot[bot] Aug 24, 2023
1fb444a
build(deps): bump aws.sdk.version from 2.20.128 to 2.20.133 (#1393)
dependabot[bot] Aug 24, 2023
787aa9d
chore: secure github actions using hash instead of versions (#1232)
jeromevdl Aug 24, 2023
8d03249
docs: Update gradle configuration readme (#1359)
scottgerring Aug 24, 2023
e35de90
maven deploy configuration (skip in tests and examples) (#1388)
jeromevdl Aug 25, 2023
34c6793
build(deps-dev): bump software.amazon.awscdk:aws-cdk-lib (#1394)
dependabot[bot] Aug 25, 2023
c21d66d
build(deps): bump aws.sdk.version from 2.20.133 to 2.20.134 (#1396)
dependabot[bot] Aug 25, 2023
9f33fed
build(deps): bump aws.sdk.version from 2.20.134 to 2.20.135 (#1398)
dependabot[bot] Aug 28, 2023
c6932ae
build(deps): bump aws.sdk.version from 2.20.135 to 2.20.136 (#1404)
dependabot[bot] Aug 29, 2023
2d7f024
docs(logging): align example cloudwatch example to correct output fro…
walmsles Sep 4, 2023
ec48401
build(deps): bump aws.sdk.version from 2.20.136 to 2.20.137 (#1406)
dependabot[bot] Sep 4, 2023
910b4f2
build(deps): bump com.puppycrawl.tools:checkstyle (#1399)
dependabot[bot] Sep 4, 2023
578fd80
build(deps): bump aws.sdk.version from 2.20.137 to 2.20.140 (#1412)
dependabot[bot] Sep 4, 2023
6debe05
build(deps): bump com.amazonaws:aws-lambda-java-events (#1413)
dependabot[bot] Sep 4, 2023
2e76952
build(deps): bump aws.sdk.version from 2.20.133 to 2.20.140 (#1415)
dependabot[bot] Sep 5, 2023
9df5830
build(deps): bump aws.sdk.version from 2.20.140 to 2.20.141 (#1421)
dependabot[bot] Sep 6, 2023
5d8e8ba
build(deps): bump aws.sdk.version from 2.20.140 to 2.20.142 (#1423)
dependabot[bot] Sep 7, 2023
8935593
build(deps): bump aws.sdk.version from 2.20.141 to 2.20.143 (#1424)
dependabot[bot] Sep 8, 2023
f66b46b
build(deps): bump com.github.tomakehurst:wiremock-jre8 (#1426)
dependabot[bot] Sep 8, 2023
6b5b1a4
build(deps): bump aws.sdk.version from 2.20.141 to 2.20.144 (#1427)
dependabot[bot] Sep 11, 2023
18294af
docs: Fix link to SQS large message migration guide (#1422)
scottgerring Sep 11, 2023
3dfebee
fix #1419 (#1420)
jeromevdl Sep 11, 2023
aa56890
build(deps): bump aws.sdk.version from 2.20.143 to 2.20.145 (#1429)
dependabot[bot] Sep 12, 2023
270b78f
build(deps): bump aws.sdk.version from 2.20.144 to 2.20.146 (#1430)
dependabot[bot] Sep 13, 2023
ff4571f
build(deps): bump aws.sdk.version from 2.20.146 to 2.20.147 (#1431)
dependabot[bot] Sep 14, 2023
23b779d
build(deps): bump aws.sdk.version from 2.20.147 to 2.20.148 (#1433)
dependabot[bot] Sep 15, 2023
4b0b5a8
build(deps): bump aws.sdk.version from 2.20.145 to 2.20.149 (#1436)
dependabot[bot] Sep 18, 2023
61db386
build(deps): bump aws.sdk.version from 2.20.148 to 2.20.150 (#1437)
dependabot[bot] Sep 19, 2023
49f2469
build(deps): bump aws.sdk.version from 2.20.150 to 2.20.151 (#1438)
dependabot[bot] Sep 20, 2023
15d7a99
build(deps): bump aws.sdk.version from 2.20.149 to 2.20.152 (#1439)
dependabot[bot] Sep 21, 2023
07d9118
build(deps): bump aws.sdk.version from 2.20.151 to 2.20.152 (#1440)
dependabot[bot] Sep 22, 2023
49ae687
build(deps-dev): bump software.amazon.awscdk:aws-cdk-lib (#1443)
dependabot[bot] Sep 26, 2023
6a94862
build(deps-dev): bump software.constructs:constructs (#1407)
dependabot[bot] Sep 26, 2023
24393d8
chore: Reporting size of the jars in GitHub comments (#1196)
jeromevdl Sep 27, 2023
c862a8c
build(deps): bump aws.sdk.version from 2.20.152 to 2.20.153 (#1441)
dependabot[bot] Sep 27, 2023
dd364dd
build(deps): bump com.github.spotbugs:spotbugs-maven-plugin (#1448)
dependabot[bot] Sep 27, 2023
4d3484f
docs: Add Serveless Framework example (#1363)
AlexeySoshin Sep 28, 2023
fa75c74
docs: apply line highlight only for default light mode (#1453)
am29d Oct 2, 2023
1140fcf
fix: Fix schema validation unit test build issues (#1456)
scottgerring Oct 5, 2023
3ea3fa1
Use URITranslator to use local files instead of remote (#1457)
jeromevdl Oct 6, 2023
965c897
build(deps): bump aws.sdk.version from 2.20.153 to 2.20.155 (#1447)
dependabot[bot] Oct 9, 2023
e99bfad
build(deps): bump com.networknt:json-schema-validator (#1446)
dependabot[bot] Oct 9, 2023
349ea0b
build(deps-dev): bump software.amazon.awscdk:aws-cdk-lib (#1461)
dependabot[bot] Oct 9, 2023
aa53bd9
build(deps): bump aws.sdk.version from 2.20.155 to 2.20.162 (#1462)
dependabot[bot] Oct 12, 2023
897f7e9
build(deps): bump org.apache.maven.plugins:maven-javadoc-plugin (#1473)
dependabot[bot] Oct 12, 2023
d3b5a72
Merge, accepting both sides for deleted files
scottgerring Oct 13, 2023
c5ced4f
Remove powertools-examples-core
scottgerring Oct 13, 2023
fc9f0ec
Resolve merge issues
scottgerring Oct 13, 2023
653e98a
Fix aspectj issue
scottgerring Oct 13, 2023
857fd4c
Fix up merge
scottgerring Oct 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions .github/workflows/pr_artifacts_size.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Artifacts Size

on:
pull_request:
branches:
- master
paths:
- 'powertools-cloudformation/**'
- 'powertools-core/**'
- 'powertools-serialization/**'
- 'powertools-logging/**'
- 'powertools-sqs/**'
- 'powertools-tracing/**'
- 'powertools-validation/**'
- 'powertools-parameters/**'
- 'powertools-idempotency/**'
- 'powertools-metrics/**'
- 'pom.xml'
jobs:
codecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Setup java JDK 11
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0
with:
distribution: 'corretto'
java-version: 11
- name: Build with Maven
run: mvn clean package --file pom.xml -DskipTests
- name: Get artifacts size & build report
id: artifacts-size-report
run: |
echo '## :floppy_disk: Artifacts Size Report' > report.md
echo '| Module | Version | Size (KB) |' >> report.md
echo '| --- | --- | --- |' >> report.md
artifact_version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
for artifact in $(cat target/powertools-parent-*.buildinfo | grep 'outputs.*.jar' | grep -v 'sources.jar'); do
artifact_name=$(echo "$artifact" | cut -d '=' -f2)
artifact_name=${artifact_name%-$artifact_version.jar}
artifact_size=$(grep "${artifact%%.filename*}.length" target/powertools-parent-*.buildinfo | cut -d '=' -f2)
printf "| %s | %s | %.2f |\n" "$artifact_name" "$artifact_version" "$(bc <<< "scale=2; $artifact_size/1000")" >> report.md
done
- name: Find potential existing report
uses: peter-evans/find-comment@a54c31d7fa095754bfef525c0c8e5e5674c4b4b1 # 2.4.0
id: find-comment
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: Artifacts Size Report
- name: Write artifacts size report in comment
uses: peter-evans/create-or-update-comment@c6c9a1a66007646a28c153e2a8580a5bad27bcfa # 3.0.2
with:
comment-id: ${{ steps.find-comment.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
body-path: 'report.md'
edit-mode: replace
File renamed without changes.
8 changes: 4 additions & 4 deletions docs/core/logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ You can set a Correlation ID using `correlationIdPath` attribute by passing a [J
"functionName": "test",
"functionMemorySize": 128,
"functionArn": "arn:aws:lambda:eu-west-1:12345678910:function:test",
"lambda_request_id": "52fdfc07-2182-154f-163f-5f0f9a621d72",
"function_request_id": "52fdfc07-2182-154f-163f-5f0f9a621d72",
"correlation_id": "correlation_id_value"
}
```
Expand Down Expand Up @@ -397,7 +397,7 @@ for known event sources, where either a request ID or X-Ray Trace ID are present
"functionName": "test",
"functionMemorySize": 128,
"functionArn": "arn:aws:lambda:eu-west-1:12345678910:function:test",
"lambda_request_id": "52fdfc07-2182-154f-163f-5f0f9a621d72",
"function_request_id": "52fdfc07-2182-154f-163f-5f0f9a621d72",
"correlation_id": "correlation_id_value"
}
```
Expand Down Expand Up @@ -510,7 +510,7 @@ this means that custom keys can be persisted across invocations. If you want all
"functionName": "test",
"functionMemorySize": 128,
"functionArn": "arn:aws:lambda:eu-west-1:12345678910:function:test",
"lambda_request_id": "52fdfc07-2182-154f-163f-5f0f9a621d72",
"function_request_id": "52fdfc07-2182-154f-163f-5f0f9a621d72",
"specialKey": "value"
}
```
Expand All @@ -527,7 +527,7 @@ this means that custom keys can be persisted across invocations. If you want all
"functionName": "test",
"functionMemorySize": 128,
"functionArn": "arn:aws:lambda:eu-west-1:12345678910:function:test",
"lambda_request_id": "52fdfc07-2182-154f-163f-5f0f9a621d72"
"function_request_id": "52fdfc07-2182-154f-163f-5f0f9a621d72"
}
```

Expand Down
4 changes: 3 additions & 1 deletion docs/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
}

.highlight .hll {
background-color: lavender
[data-md-color-scheme="default"] {
background-color: lavender;
}
}

.md-typeset table:not([class]) {
Expand Down
9 changes: 5 additions & 4 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ Each example can be copied from its subdirectory and used independently of the r

## Examples

* [powertools-examples-core-utilities](powertools-examples-core-utilities) - Demonstrates the core logging, tracing, and metrics modules with different build tools
* [SAM](powertools-examples-core-utilities/sam)
* [CDK](powertools-examples-core-utilities/cdk)
* [powertools-examples-core](powertools-examples-core) - Demonstrates the core logging, tracing, and metrics modules with different build tools
* [SAM](./powertools-examples-core/sam)
* [CDK](./powertools-examples-core/cdk)
* [Serverless](./powertools-examples-core/serverless)
* [powertools-examples-idempotency](powertools-examples-idempotency) - An idempotent HTTP API
* [powertools-examples-parameters](powertools-examples-parameters) - Uses the parameters module to provide runtime parameters to a function
* [powertools-examples-serialization](powertools-examples-serialization) - Uses the serialization module to serialize and deserialize API Gateway & SQS payloads
Expand Down Expand Up @@ -54,7 +55,7 @@ The first command will build the source of your application. The second command

You can find your API Gateway Endpoint URL in the output values displayed after deployment.

If you're not using SAM, you can look for examples for other tools under [powertools-examples-core-utilities](./powertools-examples-core-utilities)
If you're not using SAM, you can look for examples for other tools under [powertools-examples-core](./powertools-examples-core)

### External examples

Expand Down
1 change: 1 addition & 0 deletions examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<module>powertools-examples-core-utilities/sam</module>
<module>powertools-examples-core-utilities/cdk/app</module>
<module>powertools-examples-core-utilities/cdk/infra</module>
<module>powertools-examples-core-utilities/serverless</module>
<module>powertools-examples-idempotency</module>
<module>powertools-examples-parameters</module>
<module>powertools-examples-serialization</module>
Expand Down
3 changes: 2 additions & 1 deletion examples/powertools-examples-batch/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
<log4j.version>2.20.0</log4j.version>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<sdk.version>2.20.133</sdk.version>
<sdk.version>2.20.162</sdk.version>
<aspectj.version>1.9.20</aspectj.version>

</properties>

<dependencies>
Expand Down
5 changes: 3 additions & 2 deletions examples/powertools-examples-cloudformation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<lambda.core.version>1.2.3</lambda.core.version>
<lambda.events.version>3.11.2</lambda.events.version>
<aws.sdk.version>2.20.136</aws.sdk.version>
<lambda.events.version>3.11.3</lambda.events.version>
<aws.sdk.version>2.20.162</aws.sdk.version>
<aspectj.version>1.9.20</aspectj.version>

</properties>
<dependencyManagement>
<dependencies>
Expand Down
3 changes: 2 additions & 1 deletion examples/powertools-examples-core-utilities/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ We provide examples for the following infrastructure-as-code tools:

* [AWS SAM](sam/)
* [AWS CDK](cdk/)
* [Serverless framework](serverless/)

We also provide an example showing the integration of SAM, Powertools, and Gradle:

* [AWS SAM with a Gradle build](../powertools-examples-core-utilities/gradle/)
* [AWS SAM with a Gradle build](gradle/)

For each of the tools, the example application is the same, and consists of the following files:

Expand Down
10 changes: 5 additions & 5 deletions examples/powertools-examples-core-utilities/cdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ For general information on the deployed example itself, you can refer to the par

## Configuration
CDK uses the following project structure:
- [app](app) - stores the source code of your application, which is similar between all examples
- [infra](infra) - stores the definition of your infrastructure
- [cdk.json](infra/cdk.json) - tells the CDK Toolkit how to execute your app
- [CdkApp](infra/src/main/java/cdk/CdkApp.java) - bootstraps your stack, taking AWS `account` and `region` as input
- [CdkStack](infra/src/main/java/cdk/CdkStack.java) - defines the Lambda function to be deployed as well as API Gateway for it.
- [app](./app) - stores the source code of your application, which is similar between all examples
- [infra](./infra) - stores the definition of your infrastructure
- [cdk.json](./infra/cdk.json) - tells the CDK Toolkit how to execute your app
- [CdkApp](./infra/src/main/java/cdk/CdkApp.java) - bootstraps your stack, taking AWS `account` and `region` as input
- [CdkStack](./infra/src/main/java/cdk/CdkStack.java) - defines the Lambda function to be deployed as well as API Gateway for it.

It is a [Maven](https://maven.apache.org/) based project, so you can open this project with any Maven compatible Java IDE to build and run tests.

Expand Down
10 changes: 6 additions & 4 deletions examples/powertools-examples-core-utilities/cdk/app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
<modelVersion>4.0.0</modelVersion>

<groupId>software.amazon.lambda.examples</groupId>
<!-- TODO TODO TODO this should build from SNAPSHOT, but it doesn't, because the snapshots
don't appear in the docker environment CDK builds it in in our CDK tests. How to procede? V2 blocker -->
<version>1.17.0</version>
<artifactId>powertools-examples-core-utilities-cdk</artifactId>
<packaging>jar</packaging>

<name>Powertools for AWS Lambda (Java) library Examples - Core Utilities (logging, tracing, metrics) with CDK</name>
<name>Powertools for AWS Lambda (Java) library Examples - Core</name>

<properties>
<log4j.version>2.20.0</log4j.version>
Expand Down Expand Up @@ -40,7 +41,7 @@
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-lambda-java-events</artifactId>
<version>3.11.2</version>
<version>3.11.3</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
Expand Down Expand Up @@ -119,7 +120,8 @@
</goals>
<configuration>
<transformers>
<transformer implementation="org.apache.logging.log4j.maven.plugins.shade.transformer.Log4j2PluginCacheFileTransformer"/>
<transformer
implementation="org.apache.logging.log4j.maven.plugins.shade.transformer.Log4j2PluginCacheFileTransformer"/>
</transformers>
</configuration>
</execution>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ You can also use `sam init` to create a new Gradle-powered Powertools applicatio
and then **Hello World Example with Powertools for AWS Lambda**, **Java 17** runtime, and finally **gradle**.


For general information on the deployed example itself, you can refer to the parent [README](../../powertools-examples-core/README.md)
For general information on the deployed example itself, you can refer to the parent [README](../README.md)

## Configuration
SAM uses [template.yaml](template.yaml) to define the application's AWS resources.
Expand Down
7 changes: 3 additions & 4 deletions examples/powertools-examples-core-utilities/sam/pom.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<name>Powertools for AWS Lambda (Java) library Examples - Core Utilities (logging, tracing, metrics) with SAM</name>
<groupId>software.amazon.lambda.examples</groupId>
<version>2.0.0-SNAPSHOT</version>
<artifactId>powertools-examples-core-utilities-sam</artifactId>
<packaging>jar</packaging>

<name>Powertools for AWS Lambda (Java) library Examples - Core Utilities (logging, tracing, metrics) with SAM</name>

<properties>
<log4j.version>2.20.0</log4j.version>
Expand Down Expand Up @@ -40,7 +39,7 @@
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-lambda-java-events</artifactId>
<version>3.11.2</version>
<version>3.11.3</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
Expand Down
26 changes: 26 additions & 0 deletions examples/powertools-examples-core-utilities/serverless/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Powertools for AWS Lambda (Java) - Core Utilities Example with Serverless Framework

This project demonstrates the Lambda for Powertools Java module deployed using [Serverless Framework](https://www.serverless.com/framework).
For general information on the deployed example itself, you can refer to the parent [README](../README.md).
To install Serverless Framework if you don't have it yet, you can follow the [Getting Started Guide](https://www.serverless.com/framework/docs/getting-started).

## Configuration
Serverless Framework uses [serverless.yml](./serverless.yml) to define the application's AWS resources.
This file defines the Lambda function to be deployed as well as API Gateway for it.

It is a [Maven](https://maven.apache.org/) based project, so you can open this project with any Maven compatible Java IDE to build and run tests.


## Deploy the sample application

To deploy the app, simply run the following commands:
```bash
mvn package && sls deploy
```

## Useful commands

Deploy a single function
```bash
sls deploy function -f hello
```
Loading