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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인