Skip to content

Commit fcf0b06

Browse files
authored
Merge pull request #401 from owain68/patch-1
Update README.md
2 parents 870f774 + c7f6306 commit fcf0b06

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

README.md

+26-2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ This is the Serverless Framework plugin for AWS Step Functions.
4747
- [Specifying a Name](#specifying-a-name)
4848
- [Specifying a RoleArn](#specifying-a-rolearn)
4949
- [Specifying a custom CloudWatch EventBus](#specifying-a-custom-cloudwatch-eventbus)
50+
- [Specifying a custom EventBridge EventBus](#specifying-a-custom-eventbridge-eventbus)
5051
- [Tags](#tags)
5152
- [Commands](#commands)
5253
- [deploy](#deploy)
@@ -1085,12 +1086,12 @@ stepFunctions:
10851086

10861087
#### Specifying a custom CloudWatch EventBus
10871088

1088-
You can choose which CloudWatch Event bus to listen to:
1089+
You can choose which CloudWatch Event bus:
10891090

10901091
```yml
10911092
stepFunctions:
10921093
stateMachines:
1093-
cloudwatchEvent:
1094+
exampleCloudwatchEventStartsMachine:
10941095
events:
10951096
- cloudwatchEvent:
10961097
eventBusName: 'my-custom-event-bus'
@@ -1106,6 +1107,29 @@ stepFunctions:
11061107
...
11071108
```
11081109

1110+
#### Specifying a custom EventBridge EventBus
1111+
1112+
You can choose which EventBridge Event bus:
1113+
1114+
```yml
1115+
stepFunctions:
1116+
stateMachines:
1117+
exampleEventBridgeEventStartsMachine:
1118+
events:
1119+
- eventBridge:
1120+
eventBusName: 'my-custom-event-bus'
1121+
event:
1122+
source:
1123+
- "my.custom.source"
1124+
detail-type:
1125+
- "My Event Type"
1126+
detail:
1127+
state:
1128+
- pending
1129+
definition:
1130+
...
1131+
```
1132+
11091133
## Tags
11101134

11111135
You can specify tags on each state machine. Additionally any global tags (specified under `provider` section in your `serverless.yml`) would be merged in as well.

0 commit comments

Comments
 (0)