From b61989cb35949f724518160b1b10c21765466a4b Mon Sep 17 00:00:00 2001 From: cpitchford Date: Tue, 15 May 2018 18:28:35 +0100 Subject: [PATCH] Bugfix: put_permission action parameter Boto3/AWS requires that the Action parameter of put_permissions is fully qualified as "events:PutEvents" not "PutEvents" --- moto/events/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moto/events/models.py b/moto/events/models.py index 5c1d507c..03829999 100644 --- a/moto/events/models.py +++ b/moto/events/models.py @@ -210,7 +210,7 @@ class EventsBackend(BaseBackend): raise NotImplementedError() def put_permission(self, action, principal, statement_id): - if action is None or action != 'PutEvents': + if action is None or action != 'events:PutEvents': raise JsonRESTError('InvalidParameterValue', 'Action must be PutEvents') if principal is None or self.ACCOUNT_ID.match(principal) is None: