Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tsertkov/sam-go-lambdas
AWS SAM and Lambdas Playground
https://github.com/tsertkov/sam-go-lambdas
aws-api-gateway aws-lambda aws-sam echo-framework gin-framework golang lambda lambda-layers nodejs python serverless
Last synced: 16 days ago
JSON representation
AWS SAM and Lambdas Playground
- Host: GitHub
- URL: https://github.com/tsertkov/sam-go-lambdas
- Owner: tsertkov
- License: mit
- Created: 2022-07-12T15:44:32.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-07-17T07:55:08.000Z (over 2 years ago)
- Last Synced: 2024-10-17T12:27:13.699Z (2 months ago)
- Topics: aws-api-gateway, aws-lambda, aws-sam, echo-framework, gin-framework, golang, lambda, lambda-layers, nodejs, python, serverless
- Language: Go
- Homepage:
- Size: 55.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sam-go-lambdas
Serverless playground with AWS SAM.
## Features played
- Build lambdas inside docker containers
`make ci-build` -> `sam build --use-container`
- Build Go lambdas using Makefile
- Build Python lambda layer using Makefile
- Build Python lambda layer with AWS SAM PythonPipBuilder
- Build Nodejs lambda layer with AWS SAM NodejsNpmBuilder
- ApiGateway lambda proxy integration
- Go API lambdas with Gin and Echo frameworks
- Inline Python lambda using shared layers (no tests)
- Inline Nodejs lambda using shared layers (no tests)
- ResourceGroup for grouping application resources## Usage
Start with generating SAM configuration file by invoking `sam deploy --guided`.
Cli commands:
- `make build` - test and build lambda functions and layers
- `sam deploy` - deploy application
- `sam local start-api` - launch api locally
- `sam logs` - remote logs monitoring
- `sam delete` - delete provisioned infraScripts:
- `scripts/call-api-gw.sh` - invoke deployed lambdas with aws api gateway
- `scripts/invoke-lambdas.sh` - invoke deployed lambdas with aws cli