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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南