diff --git a/lib/deploy/stepFunctions/compileIamRole.js b/lib/deploy/stepFunctions/compileIamRole.js index aab18e9c..51619ec3 100644 --- a/lib/deploy/stepFunctions/compileIamRole.js +++ b/lib/deploy/stepFunctions/compileIamRole.js @@ -84,7 +84,7 @@ function getBatchPermissions() { 'arn:aws:events', { Ref: 'AWS::Region' }, { Ref: 'AWS::AccountId' }, - 'rules/StepFunctionsGetEventsForBatchJobsRule', + 'rule/StepFunctionsGetEventsForBatchJobsRule', ], ], }, @@ -104,7 +104,7 @@ function getEcsPermissions() { 'arn:aws:events', { Ref: 'AWS::Region' }, { Ref: 'AWS::AccountId' }, - 'rules/StepFunctionsGetEventsForECSTaskRule', + 'rule/StepFunctionsGetEventsForECSTaskRule', ], ], }, diff --git a/lib/deploy/stepFunctions/compileIamRole.test.js b/lib/deploy/stepFunctions/compileIamRole.test.js index 15f42179..14e677ce 100644 --- a/lib/deploy/stepFunctions/compileIamRole.test.js +++ b/lib/deploy/stepFunctions/compileIamRole.test.js @@ -583,7 +583,7 @@ describe('#compileIamRole', () => { 'arn:aws:events', { Ref: 'AWS::Region' }, { Ref: 'AWS::AccountId' }, - 'rules/StepFunctionsGetEventsForBatchJobsRule', + 'rule/StepFunctionsGetEventsForBatchJobsRule', ], ], }]); @@ -638,7 +638,7 @@ describe('#compileIamRole', () => { 'arn:aws:events', { Ref: 'AWS::Region' }, { Ref: 'AWS::AccountId' }, - 'rules/StepFunctionsGetEventsForECSTaskRule', + 'rule/StepFunctionsGetEventsForECSTaskRule', ], ], }]);