https://github.com/mathix420/aws-cf-boilerplate
Boilerplate for AWS lambda/sfn development
https://github.com/mathix420/aws-cf-boilerplate
Last synced: 10 days ago
JSON representation
Boilerplate for AWS lambda/sfn development
- Host: GitHub
- URL: https://github.com/mathix420/aws-cf-boilerplate
- Owner: mathix420
- Created: 2022-11-29T10:39:55.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-24T10:25:51.000Z (over 3 years ago)
- Last Synced: 2025-03-03T12:48:00.641Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 236 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# [WIP] Boilerplate for AWS lambda/sfn devlopment
## Create a new lambda
1. Copy base from example.
```bash
cp -r .examples/lambda lambdas/example
```
2. Update name in `package.json` and `README.md`.
3. Update target in `build` command (ex: `--target=node-10`).
4. `lerna bootstrap && lerna run build`
## Create a new package
1. Copy base from example.
```bash
cp -r .examples/package packages/example
```
2. Update name in `package.json` and `README.md`.
3. Build and link
```bash
lerna bootstrap && \
lerna run build && \
npm i example-package@file:packages/example && \
lerna link
```
## Install a package in lambda
```bash
lerna add example-package --scope=example-lambda
```
Then change `example-package` version to `*` in `example-lambda/package.json`.