Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 infra

Scripts:

- `scripts/call-api-gw.sh` - invoke deployed lambdas with aws api gateway
- `scripts/invoke-lambdas.sh` - invoke deployed lambdas with aws cli