You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26-2
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,7 @@ This is the Serverless Framework plugin for AWS Step Functions.
47
47
-[Specifying a Name](#specifying-a-name)
48
48
-[Specifying a RoleArn](#specifying-a-rolearn)
49
49
-[Specifying a custom CloudWatch EventBus](#specifying-a-custom-cloudwatch-eventbus)
50
+
-[Specifying a custom EventBridge EventBus](#specifying-a-custom-eventbridge-eventbus)
50
51
-[Tags](#tags)
51
52
-[Commands](#commands)
52
53
-[deploy](#deploy)
@@ -1085,12 +1086,12 @@ stepFunctions:
1085
1086
1086
1087
#### Specifying a custom CloudWatch EventBus
1087
1088
1088
-
You can choose which CloudWatch Event bus to listen to:
1089
+
You can choose which CloudWatch Event bus:
1089
1090
1090
1091
```yml
1091
1092
stepFunctions:
1092
1093
stateMachines:
1093
-
cloudwatchEvent:
1094
+
exampleCloudwatchEventStartsMachine:
1094
1095
events:
1095
1096
- cloudwatchEvent:
1096
1097
eventBusName: 'my-custom-event-bus'
@@ -1106,6 +1107,29 @@ stepFunctions:
1106
1107
...
1107
1108
```
1108
1109
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
+
1109
1133
## Tags
1110
1134
1111
1135
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