Skip to content

Commit 044539a

Browse files
docs: updated docs to mention eventBridge
1 parent 1a487d0 commit 044539a

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

README.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ events:
820820
role: arn:aws:iam::xxxxxxxx:role/yourRole
821821
```
822822

823-
### CloudWatch Event
823+
### CloudWatch Event / EventBridge
824824

825825
#### Simple event definition
826826

@@ -845,9 +845,31 @@ stepFunctions:
845845
...
846846
```
847847

848+
You can alternatively use EventBridge:
849+
850+
```yml
851+
stepFunctions:
852+
stateMachines:
853+
first:
854+
events:
855+
- eventBridge:
856+
event:
857+
source:
858+
- "aws.ec2"
859+
detail-type:
860+
- "EC2 Instance State-change Notification"
861+
detail:
862+
state:
863+
- pending
864+
definition:
865+
...
866+
```
867+
868+
All the configurations in this section applies to both `cloudwatchEvent` and `eventBridge`.
869+
848870
#### Enabling / Disabling
849871

850-
**Note:** `cloudwatchEvent` events are enabled by default.
872+
**Note:** `cloudwatchEvent` and `eventBridge` events are enabled by default.
851873

852874
This will create and attach a disabled `cloudwatchEvent` event for the `myCloudWatch` statemachine.
853875

0 commit comments

Comments
 (0)