Skip to content

Run AWS Lambda locally with Golang and docker image - provided:al2023

License

Notifications You must be signed in to change notification settings

adrian-lin-1-0-0/local-go-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Local go lambda

Build Docker image

make build-image

or

docker build --platform linux/amd64 -t local-go-lambda:latest .

Run Docker image

make run-image

or

docker run -p 8080:8080 \
--entrypoint /usr/local/bin/aws-lambda-rie \
local-go-lambda:latest ./main

Test

curl "http://localhost:8080/2015-03-31/functions/function/invocations" -d '{}'

Ref

Releases

No releases published

Packages

No packages published