Skip to content

Commit 4911f70

Browse files
Merge pull request #169 from dpwrussell/iam-rule-correction
Fix Batch/ECS integrations
2 parents 1b2d788 + 5da567c commit 4911f70

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/deploy/stepFunctions/compileIamRole.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function getBatchPermissions() {
8484
'arn:aws:events',
8585
{ Ref: 'AWS::Region' },
8686
{ Ref: 'AWS::AccountId' },
87-
'rules/StepFunctionsGetEventsForBatchJobsRule',
87+
'rule/StepFunctionsGetEventsForBatchJobsRule',
8888
],
8989
],
9090
},
@@ -104,7 +104,7 @@ function getEcsPermissions() {
104104
'arn:aws:events',
105105
{ Ref: 'AWS::Region' },
106106
{ Ref: 'AWS::AccountId' },
107-
'rules/StepFunctionsGetEventsForECSTaskRule',
107+
'rule/StepFunctionsGetEventsForECSTaskRule',
108108
],
109109
],
110110
},

lib/deploy/stepFunctions/compileIamRole.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ describe('#compileIamRole', () => {
583583
'arn:aws:events',
584584
{ Ref: 'AWS::Region' },
585585
{ Ref: 'AWS::AccountId' },
586-
'rules/StepFunctionsGetEventsForBatchJobsRule',
586+
'rule/StepFunctionsGetEventsForBatchJobsRule',
587587
],
588588
],
589589
}]);
@@ -638,7 +638,7 @@ describe('#compileIamRole', () => {
638638
'arn:aws:events',
639639
{ Ref: 'AWS::Region' },
640640
{ Ref: 'AWS::AccountId' },
641-
'rules/StepFunctionsGetEventsForECSTaskRule',
641+
'rule/StepFunctionsGetEventsForECSTaskRule',
642642
],
643643
],
644644
}]);

0 commit comments

Comments
 (0)