iann0036/iamfast

events:PutTargets,PutRule,etc.etc generate invalid IAM when default EventBus is used

Closed this issue · 2 comments

when generating IAM policies for some of the eventbus operations and not specifying the EventBus (have it use the default bus) the IAM permission is wrong.

expected: arn:aws:events:us-east-1:123456789012:rule/MyRule
actual: arn:aws:events:us-east-1:123456789012:rule[/*]/MyRule

Hey @OlafConijn,

Thanks for raising!

I've added a fix that should hopefully override the SAR-provided ARN with one that should be default EventBus-aware, but try it out and let me know.