Skip to content

AWS sam cli image for Docker. Handy way to run AWS lambda functions locally.

Notifications You must be signed in to change notification settings

pulsarix/docker-aws-sam-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker image

AWS sam local image for Docker

docker run -ti pulsarix/aws-sam-cli:latest --version                             
SAM CLI, version 1.3.0

Run aws lambda locally using aws-sam-cli with docker-compose.

version: "3.5"
services:
  sam-local:
    image: pulsarix/aws-sam-cli:latest
    networks:
      - cloud
    environment:
      - "SAM_CLI_TELEMETRY=0"
      - "AWS_ACCESS_KEY_ID=bogus"
      - "AWS_SECRET_ACCESS_KEY=bogus"
    volumes:
      - ${PWD}:/var/opt:ro
      - $HOME/.aws:/root/.aws:ro
      - /var/run/docker.sock:/var/run/docker.sock:rw
    command: "local start-api --host 0.0.0.0 --skip-pull-image --docker-volume-basedir=${PWD} --docker-network=${COMPOSE_PROJECT_NAME}_cloud"
    ports:
      - 3000:3000

About

AWS sam cli image for Docker. Handy way to run AWS lambda functions locally.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published