Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Powertools for AWS Lambda (Kotlin) - Core Utilities Example

This project demonstrates the Lambda for Powertools Kotlin module deployed using Serverless Application Model with Gradle running the build. This example is configured for Java 1.8 only; in order to use a newer version, check out the Gradle configuration guide in the main project README.

You can also use sam init to create a new Gradle-powered Powertools application - choose to use the AWS Quick Start Templates, 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

Configuration

SAM uses template.yaml to define the application's AWS resources. This file defines the Lambda function to be deployed as well as API Gateway for it.

The build of the project is managed by Gradle, and configured in build.gradle.kts .

Deploy the sample application

To get started, you can use the included template with SAM to run the build and deploy to your AWS environment:

sam build && sam deploy --guided

Once this is done to deploy the example, check out the instructions for getting started with SAM in the examples directory

Additional notes

You can watch the trace information or log information using the SAM CLI:

# Tail the logs
sam logs --tail $MY_STACK

# Tail the traces
sam traces --tail