Skip to content

Commit 9c0ab23

Browse files
author
Taras Buchko
authored
Merge pull request #3 from bucha09/master
fix: add description in readme.md
2 parents 9f0a827 + 3d7061d commit 9c0ab23

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff 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

10061034
You can choose which CloudWatch Event bus to listen to:

0 commit comments

Comments
 (0)