From 5da567cd3c51b4666597a6099ecfc455def75f2a Mon Sep 17 00:00:00 2001 From: dpwrussell Date: Sat, 2 Feb 2019 16:20:49 -0500 Subject: [PATCH] Fix rule name from rules to rule prefix --- lib/deploy/stepFunctions/compileIamRole.js | 4 ++-- lib/deploy/stepFunctions/compileIamRole.test.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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', ], ], }]);