Should I create IAM role to allow AWS service send events to my default bus

0

I have setup an example with eventbridge: ec2 -> eventbridge -> sqs.

This example works well, but I didn't create IAM role for ec2, I wonder that does the EC2 need an IAM role to access my default bus or not?

yukon
asked 3 years ago466 views
2 Answers
0

For AWS Services, such as EC2, to publish events to your default event-bus, they do not need an IAM role. You get these AWS service events by default on your "default" event-bus - You do not need to do anything to receive them.

Please keep in mind, only AWS Services can do this on your default-event-bus. Other identities (users/roles), or other event-bus destinations require authentication to call the "PutEvents" EventBridge API.

Hope this helps!

answered 3 years ago
0

Got it, thanks

yukon
answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions