File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 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.
4242 - [ Specify Input or Inputpath] ( #specify-input-or-inputpath )
4343 - [ Specifying a Description] ( #specifying-a-description )
4444 - [ Specifying a Name] ( #specifying-a-name )
45+ - [ Specifying a RoleArn] ( #specifying-a-rolearn )
4546 - [ Specifying a custom CloudWatch EventBus] ( #specifying-a-custom-cloudwatch-eventbus )
4647 - [ Tags] ( #tags )
4748 - [ Commands] ( #commands )
@@ -1001,6 +1002,33 @@ stepFunctions:
10011002 ...
10021003` ` `
10031004
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+
10041032# ### Specifying a custom CloudWatch EventBus
10051033
10061034You can choose which CloudWatch Event bus to listen to :
You can’t perform that action at this time.
0 commit comments