Skip to content

Files

chapter3

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Sep 30, 2019
Dec 6, 2019
Sep 30, 2019
Sep 30, 2019

Chapter 3

Various example Lambda functions from Chapter 3

Prerequisites

  • Created: An AWS account, and an S3 bucket for storing temporary deployment artifacts (referred to as $CF_BUCKET below)
  • Installed: AWS CLI, Maven, SAM CLI
  • Configured: AWS credentials in your terminal

Usage

To build:

$ mvn package

To deploy:

$ sam deploy --s3-bucket $CF_BUCKET --stack-name HelloWorldLambdaJava --capabilities CAPABILITY_IAM

To test:

The above will create a new function in Lambda, so you can test via the Lambda web console, or via the CLI using aws lambda invoke.