forked from distinction-dev/serverless-pipes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 🚧 Added some documentation exposing the api that will drive the…
… config
- Loading branch information
1 parent
54514d1
commit b5ca44f
Showing
1 changed file
with
28 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,43 @@ | ||
# TS Frontend Template | ||
# Serverless Pipes Plugin | ||
|
||
> Template repository for us to use to create TS based frontend packages | ||
🚧 This is a Work in Progress and we're looking to get inputs from the community | ||
Making it easier to use Eventbridge pipes with Serverless Framework. Easier Api resembling that of Step Functions | ||
|
||
## Install | ||
|
||
```bash | ||
npm install @distinction-dev/serverless-ts-template | ||
npm install @distinction-dev/serverless-pipes | ||
``` | ||
|
||
or | ||
|
||
```bash | ||
yarn add @distinction-dev/serverless-ts-template | ||
yarn add @distinction-dev/serverless-pipes | ||
``` | ||
|
||
## Usage | ||
|
||
```ts | ||
import { util1, util2 } from '@distinction-dev/serverless-ts-template'; | ||
|
||
```yaml | ||
# serverless.yml | ||
|
||
functions: | ||
pipeEnricher: | ||
handler: functions/pipeEnricher.handler | ||
|
||
pipes: | ||
event: | ||
# Define Event source | ||
sqs: | ||
arn: | ||
Fn::GetAtt: | ||
- MySourceQueue | ||
- Arn | ||
enrichment: | ||
function: pipeEnricher | ||
target: | ||
sqs: | ||
arn: | ||
Fn::GetAtt: | ||
- MyTargetQueue | ||
- Arn | ||
``` | ||
|
||
## Docs | ||
|
||
Automatically generated docs are available [here](https://distinction-dev.github.io/serverless-ts-template) |