Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 1.49 KB

File metadata and controls

36 lines (26 loc) · 1.49 KB

Powertools for AWS Lambda (Java) - Core Utilities Example with CDK

This project demonstrates the Lambda for Powertools Java module deployed using Cloud Development Kit.

For general information on the deployed example itself, you can refer to the parent README

Configuration

CDK uses the following project structure:

  • app - stores the source code of your application, which is similar between all examples
  • infra - stores the definition of your infrastructure
    • cdk.json - tells the CDK Toolkit how to execute your app
    • CdkApp - bootstraps your stack, taking AWS account and region as input
    • CdkStack - defines the Lambda function to be deployed as well as API Gateway for it.

It is a Maven based project, so you can open this project with any Maven compatible Java IDE to build and run tests.

Deploy the sample application

The minimum to deploy the app should be

cdk deploy

If you're running CDK for the first time, you'll need to first run the bootstrap command:

cdk bootstrap

Useful commands

  • mvn package compile and run tests
  • cdk synth emits the synthesized CloudFormation template
  • cdk deploy deploy this stack to your default AWS account/region
  • cdk diff compare deployed stack with current state
  • cdk docs open CDK documentation