Skip to content

waku1123/lambda-container-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS - lambda with container

How to Run Script in Container

app.pyの編集を反映させるためには毎回buildが必要(だと思う)

面倒くさい方法

  1. for dev
# build image
$ docker build -t {image name} .

# start container
$ docker run --rm -p 9000:8080 {image name} -v $HOME/.aws/:/root/.aws/
  1. run lambda
curl -d '{}' http://localhost:9000/2015-03-31/functions/function/invocations

面倒くさくない方法(compose)

  1. build image & run
$ docker-compose up --build
  1. run lambda
curl -d '{}' http://localhost:9000/2015-03-31/functions/function/invocations

USE environment variables

  1. edit .env file
  2. build image
  3. run lambda

About

python:3.8

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published