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
已提问 3 年前473 查看次数
2 回答
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!

已回答 3 年前
0

Got it, thanks

yukon
已回答 3 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则