Action is now recorded as event:PutEvents (fully qualified)

We no longer need to amend how the Action is reported in the describe_event_bus policy
This commit is contained in:
cpitchford 2018-05-15 18:58:16 +01:00 committed by GitHub
parent b6e795ce61
commit 176f19136c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -235,7 +235,7 @@ class EventsBackend(BaseBackend):
'Sid': statement_id,
'Effect': 'Allow',
'Principal': {'AWS': 'arn:aws:iam::{0}:root'.format(data['principal'])},
'Action': 'events:{0}'.format(data['action']),
'Action': data['action'],
'Resource': arn
})
return {