File tree 1 file changed +28
-0
lines changed
1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ This is the Serverless Framework plugin for AWS Step Functions.
42
42
- [ Specify Input or Inputpath] ( #specify-input-or-inputpath )
43
43
- [ Specifying a Description] ( #specifying-a-description )
44
44
- [ Specifying a Name] ( #specifying-a-name )
45
+ - [ Specifying a RoleArn] ( #specifying-a-rolearn )
45
46
- [ Specifying a custom CloudWatch EventBus] ( #specifying-a-custom-cloudwatch-eventbus )
46
47
- [ Tags] ( #tags )
47
48
- [ Commands] ( #commands )
@@ -1001,6 +1002,33 @@ stepFunctions:
1001
1002
...
1002
1003
` ` `
1003
1004
1005
+ # ### Specifying a RoleArn
1006
+
1007
+ You can also specify a CloudWatch Event RoleArn.
1008
+ The Amazon Resource Name (ARN) of the role that is used for target invocation.
1009
+
1010
+ Required : No
1011
+
1012
+ ` ` ` yml
1013
+ stepFunctions:
1014
+ stateMachines:
1015
+ cloudwatchEvent:
1016
+ events:
1017
+ - cloudwatchEvent:
1018
+ name: 'my-cloudwatch-event-name'
1019
+ iamRole: 'arn:aws:iam::012345678910:role/Events-InvokeStepFunctions-Role'
1020
+ event:
1021
+ source:
1022
+ - "aws.ec2"
1023
+ detail-type:
1024
+ - "EC2 Instance State-change Notification"
1025
+ detail:
1026
+ state:
1027
+ - pending
1028
+ definition:
1029
+ ...
1030
+ ` ` `
1031
+
1004
1032
# ### Specifying a custom CloudWatch EventBus
1005
1033
1006
1034
You can choose which CloudWatch Event bus to listen to :
You can’t perform that action at this time.
0 commit comments