Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 706 Bytes

File metadata and controls

31 lines (20 loc) · 706 Bytes

SAM Local Setup

Prerequisites

Install the AWS SAM CLI

View Logs

# Follow logs in real-time
tail -f lambda/sam-local.log

# View recent logs
tail -50 lambda/sam-local.log

# View all logs
cat lambda/sam-local.log

Development Workflow

Making Lambda Changes

  1. Update Lambda code in stela
  2. Rebuild Lambda image: docker compose up -d --build <LAMBDA_BUILDER
  3. Restart SAM Local (./stop-sam-local.sh and re-run ./start-sam-local.sh --detach)
  4. Test changes

Adding a Lambda to the Local Environment

Add your lambda to the SAM template.