Skip to content

Commit 9b56ca1

Browse files
committed
feat: add is_describe option to execute DescribeExecution action
1 parent 0af8946 commit 9b56ca1

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

lib/deploy/events/apiGateway/apigateway-to-stepfunctions-assume-role.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
{
2323
"Effect": "Allow",
2424
"Action": [
25-
"states:StartExecution"
25+
"states:StartExecution",
26+
"states:DescribeExecution"
2627
],
2728
"Resource": "*"
2829
}

lib/deploy/events/apiGateway/methods.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,8 @@ module.exports = {
162162
{
163163
Ref: 'AWS::Region',
164164
},
165-
':states:action/StartExecution',
165+
(!http || !http.is_describe) ?
166+
':states:action/StartExecution' : ':states:action/DescribeExecution',
166167
],
167168
],
168169
},

lib/deploy/events/cloudWatchEvent/compileCloudWatchEventEvents.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ module.exports = {
123123
{
124124
"Effect": "Allow",
125125
"Action": [
126-
"states:StartExecution"
126+
"states:StartExecution",
127+
"states:DescribeExecution"
127128
],
128129
"Resource": {
129130
"Ref": "${stateMachineLogicalId}"

0 commit comments

Comments
 (0)