mirror of
https://github.com/imjasonh/lambda-ko
synced 2026-07-07 00:33:42 +00:00
No description
| .ko.yaml | ||
| deploy.sh | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| main.go | ||
| README.md | ||
| setup.sh | ||
Demo: Using ko to build and run on AWS Lambda
One time setup
- Create an ECR repository
- set
KO_DOCKER_REPO=[account-number].dkr.ecr.[region].amazonaws.com/[repository]
- Get the Lambda role URN
- set
ROLE=[account-number]:role/service-role/[role-name]
- Build and create the functions
./setup.shwill build images and create the functions.
Each code update
- Build and update the functions
./deploy.shwill build images and update the functions.
Known Issues
-
For now, you can't use the
awsCLI to create functions that specify CPU architectures (--architectures); this seems to only be available in the v1 CLI. Until this is supported, create these functions in the console UI. -
Lambda doesn't seem to allow you to specify multi-arch images, so you need to build arch-specific images and deploy them to the correct function architecture.