You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Setting up Kotlin environment. Converting test to Kotlin.
* Deploying via SAM successfully.
* Added Kotlin example.
* Removing unused Gradle build file.
* Adding SAM template so can be used as an existing project and Java target compatibility
* Adding SAM template so can be used as an existing project
* Updating guidance to use SAM for build and deploy
* Restructuring separate Java and Kotlin examples.
* Updating core examples readme to represent new structure for Java and Kotlin examples.
* Refactoring application code for efficiency, updating build to cover tests too and is more idiomatic and readme to be more descriptive
* Updating to fix trailing \n
* Updating guidance to be more specific for examples
* Adopting new mechanism for specifying jvm target.
* accommodating new project structure
* Fixing link typo after refactoring
* Setting up Kotlin environment. Converting test to Kotlin.
* Deploying via SAM successfully.
* Added Kotlin example.
* Removing unused Gradle build file.
* Adding SAM template so can be used as an existing project and Java target compatibility
* Adding SAM template so can be used as an existing project
* Updating guidance to use SAM for build and deploy
* Restructuring separate Java and Kotlin examples.
* Updating core examples readme to represent new structure for Java and Kotlin examples.
* Refactoring application code for efficiency, updating build to cover tests too and is more idiomatic and readme to be more descriptive
* Updating to fix trailing \n
* Updating guidance to be more specific for examples
* Adopting new mechanism for specifying jvm target.
* accommodating new project structure
* Fixing link typo after refactoring
* Flattening structure back to original to make merging easier for v2
* Adding build for Kotlin Gradle
* Adding build for Kotlin Gradle - Restructuring Java examples to v1 approach
* Correcting paths
* Adding SNAPSHOT support and local capability for Maven. Testing using Java 1.8
* Reviewed and updated against PR comments.
* Un-commenting examples
---------
Co-authored-by: Jason Harris <harrzjas@amazon.com>
Co-authored-by: Scott Gerring <scottgerring@users.noreply.github.com>
Copy file name to clipboardExpand all lines: examples/README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,10 +5,12 @@ Each example can be copied from its subdirectory and used independently of the r
5
5
6
6
## Examples
7
7
8
-
*[powertools-examples-core](powertools-examples-core) - Demonstrates the core logging, tracing, and metrics modules with different build tools
9
-
*[SAM](./powertools-examples-core/sam)
8
+
*[powertools-examples-core](powertools-examples-core) - Demonstrates the core logging, tracing, and metrics modules with different build tools and languages
*[powertools-examples-idempotency](powertools-examples-idempotency) - An idempotent HTTP API
13
15
*[powertools-examples-parameters](powertools-examples-parameters) - Uses the parameters module to provide runtime parameters to a function
14
16
*[powertools-examples-serialization](powertools-examples-serialization) - Uses the serialization module to serialize and deserialize API Gateway & SQS payloads
# Powertools for AWS Lambda (Kotlin) - Core Utilities Example
2
+
3
+
This project demonstrates the Lambda for Powertools Kotlin module deployed using [Serverless Application Model](https://aws.amazon.com/serverless/sam/) with
4
+
[Gradle](https://gradle.org/) running the build. This example is configured for Java 1.8 only; in order to use a newer version, check out the Gradle
5
+
configuration guide [in the main project README](../../../README.md).
6
+
7
+
You can also use `sam init` to create a new Gradle-powered Powertools application - choose to use the **AWS Quick Start Templates**,
8
+
and then **Hello World Example with Powertools for AWS Lambda**, **Java 17** runtime, and finally **gradle**.
9
+
10
+
For general information on the deployed example itself, you can refer to the parent [README](../README.md)
11
+
12
+
## Configuration
13
+
SAM uses [template.yaml](template.yaml) to define the application's AWS resources.
14
+
This file defines the Lambda function to be deployed as well as API Gateway for it.
15
+
16
+
The build of the project is managed by Gradle, and configured in [build.gradle.kts](build.gradle.kts)
17
+
.
18
+
19
+
## Deploy the sample application
20
+
To get started, you can use the included template with SAM to run the build and deploy to your AWS environment:
21
+
22
+
```bash
23
+
sam build && sam deploy --guided
24
+
```
25
+
26
+
Once this is done to deploy the example, check out the instructions for getting started with SAM in
27
+
[the examples directory](../../README.md)
28
+
29
+
## Additional notes
30
+
31
+
You can watch the trace information or log information using the SAM CLI:
0 commit comments