https://github.com/faabiosr/lb
Balance your AWS lambda layers across regions.
https://github.com/faabiosr/lb
aws golang lambda layers
Last synced: about 2 months ago
JSON representation
Balance your AWS lambda layers across regions.
- Host: GitHub
- URL: https://github.com/faabiosr/lb
- Owner: faabiosr
- License: mit
- Created: 2024-05-05T14:32:02.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-28T20:15:01.000Z (about 2 years ago)
- Last Synced: 2025-03-21T16:28:27.412Z (over 1 year ago)
- Topics: aws, golang, lambda, layers
- Language: Go
- Homepage:
- Size: 38.1 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lb
[](https://github.com/faabiosr/lb/actions?query=workflow:test)
[](https://codecov.io/gh/faabiosr/lb)
[](https://goreportcard.com/report/github.com/faabiosr/lb)
[](https://github.com/faabiosr/lb/releases)
[](https://github.com/faabiosr/lb/blob/master/LICENSE)
## :tada: Overview
`lb` lets you balance your AWS lambda layers across regions.
## :relaxed: Motivation
Managing AWS lambda layer across regions is difficult, because each new layer deployment will increment the version automatically, and if you need to introduce a new region, the result will be different versions.
## :dart: Installation
### Unix-like
#### Manual installation
```sh
# by default will install into ~/.local/bin folder.
curl -sSL https://raw.githubusercontent.com/faabiosr/lb/main/install.sh | bash
# install into /usr/local/bin
curl -sSL https://raw.githubusercontent.com/faabiosr/lb/main/install.sh | sudo INSTALL_PATH=/usr/local/bin bash
```
### go
```sh
go install github.com/faabiosr/lb@latest
```
## :gem: Usage
### Verify the versions deployed across regions
```sh
lb verify --regions 'us-east-1,eu-central-1,sa-east-1' my-layer
```
### Bump all regions with the latest version
```sh
lb bump --regions 'us-east-1,eu-central-1,sa-east-1' my-layer
```
## :toolbox: Development
### Requirements
The entire environment is based on Golang, and you need to install the tools below:
- Install [Go](https://golang.org)
- Install [GolangCI-Lint](https://github.com/golangci/golangci-lint#install) - Linter
### Makefile
Please run the make target below to see the provided targets.
```sh
$ make help
```
## :page_with_curl: License
This project is released under the MIT licence. See [LICENSE](https://github.com/faabiosr/lb/blob/master/LICENSE) for more details.