File tree Expand file tree Collapse file tree 1 file changed +24
-2
lines changed Expand file tree Collapse file tree 1 file changed +24
-2
lines changed Original file line number Diff line number Diff 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
852874This will create and attach a disabled `cloudwatchEvent` event for the `myCloudWatch` statemachine.
853875
You can’t perform that action at this time.
0 commit comments