Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
7a744d3
fix(): Source ARN Regex
joern-belonio Jul 4, 2024
80bca93
Merge pull request #1 from joern-belonio/fix-source-arn-regex
marco-belonio Jul 9, 2024
adf7f8b
ci(DEV-1061): Add package deployment
marco-belonio Jul 9, 2024
788e710
chore(DEV-1061): :construction_worker: Remove semantic release config…
marco-belonio Jul 9, 2024
2d95045
Revert "ci(DEV-1061): Add package deployment"
marco-belonio Jul 9, 2024
5c51456
ci: :construction_worker: Try with original configuration as private …
marco-belonio Jul 9, 2024
40ded9d
ci: 👷 Re-Add gone releaserc
marco-belonio Jul 9, 2024
057e5b5
ci(DEV-1061): :green_heart: Fix missing dependencies
marco-belonio Jul 9, 2024
1f148ef
docs: Add docs
marco-belonio Jul 9, 2024
81dec4e
ci(DEV-1061): :green_heart: Hard-Code ref
marco-belonio Jul 9, 2024
40ae097
ci(DEV-1061): :green_heart: Fix repository url
marco-belonio Jul 9, 2024
039a782
ci(DEV-1061): :green_heart: Fix missing tokens
marco-belonio Jul 9, 2024
5052917
ci(DEV-1061): :green_heart: Fix tokens, as org tokens are not inherit…
marco-belonio Jul 9, 2024
9701c49
ci(DEV-1061): :green_heart: uninstall husky for releasing
marco-belonio Jul 9, 2024
f0cd271
ci(DEV-1061): :green_heart: Use npm script instead of npx
marco-belonio Jul 9, 2024
b38d22b
chore(release): 1.0.0 [skip ci]
semantic-release-bot Jul 9, 2024
0a89d95
test: :white_check_mark: Add test for arn validation fix.
marco-belonio Jul 9, 2024
b2d79e3
test: :white_check_mark: Add test for arn validation fix.
marco-belonio Jul 9, 2024
88fa2e9
docs: :memo: Add arns as strings in example of README
marco-belonio Jul 9, 2024
a940f6f
Merge branch 'main'
marco-belonio Jul 9, 2024
a48e590
docs: :truck: Rename example pipe
marco-belonio Jul 9, 2024
0e47734
Merge branch 'main'
marco-belonio Jul 9, 2024
9e0e176
fix(): Missing Step Function Action.
joern-belonio Jul 11, 2024
1c7a907
fix(): SharedIAMRole Step Function was missing.
joern-belonio Jul 11, 2024
37601e2
Merge pull request #3 from belonio/fix/PE2-2278_Permissions
joern-belonio Jul 15, 2024
d2450b7
chore(release): 1.0.1 [skip ci]
semantic-release-bot Jul 15, 2024
becc466
Merge pull request #4 from belonio/fix/SharedIAMRole_Step_Function_mi…
joern-belonio Jul 15, 2024
01b013f
fix(): Shared Roles Testcase fixed
joern-belonio Jul 15, 2024
96378f5
Merge pull request #5 from belonio/fix/FIX_Shared_Roles_Testcase_fixed
joern-belonio Jul 15, 2024
5a58de1
chore(release): 1.0.2 [skip ci]
semantic-release-bot Jul 15, 2024
50b1aa2
fix: iAM Role name must be unique per stage
joern-belonio Jul 16, 2024
d66bb8a
fix: prefer stage from options
joern-belonio Jul 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions .github/workflows/cd.release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ name: Release
on:
push:
branches:
- main
- master

permissions:
contents: write
packages: write

jobs:
release:
name: Release
Expand All @@ -12,6 +17,7 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: master
- name: Setup Node.js
uses: actions/setup-node@v2
with:
Expand All @@ -24,8 +30,8 @@ jobs:
run: yarn build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
GITHUB_TOKEN: ${{ github.token }}
NPM_TOKEN: ${{ github.token }}
run: npm run semantic-release
- name: Code Coverage
run: yarn coverage
30 changes: 30 additions & 0 deletions .releaserc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
module.exports = {
branches: ['master'],
plugins: [
[
'@semantic-release/commit-analyzer',
{
preset: 'angular',
releaseRules: [
{type: 'docs', scope: 'README', release: 'patch'},
{type: 'refactor', release: 'patch'},
{type: 'style', release: 'patch'},
],
parserOpts: {
noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES'],
},
},
],
'@semantic-release/release-notes-generator',
'@semantic-release/github',
['@semantic-release/npm'],
[
'@semantic-release/git',
{
assets: ['package.json'],
message:
'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}',
},
],
],
};
41 changes: 32 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@

# Serverless Pipes Plugin

Serverless Framework plugin called as "pipes", used to create EventBridge Pipes by providing the required event sources, targets and other parameters as needed.

## Pull-back changes from original author:

Communication between the original author only takes place using the main branches.
master branch is used to deploy changes to our GitHub Packages Storage, meaning after updates to main, always merge `main -> master` !

- Pull back changes from origin: [distincion-dev/serverless-pipes:main -> belonio/serverless-pipes:main](https://github.com/belonio/serverless-pipes/compare/main...distinction-dev:serverless-pipes:main)
- State pull request against origin: [belonio/serverless-pipes:main -> distincion-dev/serverless-pipes:main](https://github.com/belonio/serverless-pipes/compare/distinction-dev:serverless-pipes:main...main)

DON'T FORGET: Real fixes are done against main and then merged to master, as master is solely considered as deployment gateway! Also, this ensures changes being able to go to the origin repository!

![Merge Strategy](./docs/merge-strategy.png)

## Install

```bash
Expand All @@ -16,8 +27,8 @@ yarn add serverless-pipes
```

## Allowed Services
At the initial version of the plugin, the below mentioned AWS services are supported for the source, target and enrichment in the EventBridge Pipes. We will expand to other services in the future.

At the initial version of the plugin, the below mentioned AWS services are supported for the source, target and enrichment in the EventBridge Pipes. We will expand to other services in the future.

### Source

Expand All @@ -36,8 +47,6 @@ At the initial version of the plugin, the below mentioned AWS services are suppo

- [Lambda Function](docs/parameters/EnrichmentParameters.md)



## Usage

```yaml
Expand All @@ -47,11 +56,11 @@ plugins:
- serverless-pipes

functions:
pipeEnricher:
handler: functions/pipeEnricher.handler
pipeEnricher:
handler: functions/pipeEnricher.handler

pipes:
testPipe: #pipeName
testPipe: #pipeName
enabled: true
source:
sqs:
Expand All @@ -61,13 +70,27 @@ pipes:
sns:
arn:
Fn::GetAtt: [TargetSNSTopic, TopicArn]
enrichment:
enrichment:
name: pipeEnricher
filter:
- Pattern: "{ \"body\": { \"message\": [ \"hello\" ], \"city\": [ \"hey\" ] }}"
- Pattern: '{ "body": { "message": [ "hello" ], "city": [ "hey" ] }}'
iamRolePipes:
type: "individual"

anotherTestPipe: #pipeName
enabled: true
source:
sqs:
arn: arn:aws:sqs:eu-central-1:123456789012:source-queue-name
target:
sns:
arn: arn:aws:sqs:eu-central-1:123456789012:target-queue-name
enrichment:
name: pipeEnricher
filter:
- Pattern: '{ "body": { "message": [ "hello" ], "city": [ "hey" ] }}'
iamRolePipes:
type: "individual"
```

For documentation refer [Docs](docs/index.md)
Binary file added docs/merge-strategy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading