AWS 服务和 EventBridge 是否自动集成而不需要基于角色或资源的策略?

Are AWS services and EventBridge automatically integrated without the need for Roles or Resource based policies?

默认事件总线从 AWS 服务接收事件。在正常情况下,对于一个 AWS 服务与另一个 AWS 服务的对话,基于角色或资源的策略发挥作用。然而,为了将事件发布到事件总线(它是 AWS EventBridge 的一部分,一个单独的服务),EC2 实例似乎不需要将策略添加到附加到它的角色(允许它发布实例状态更改事件到事件公共汽车)。

Is the configuration for AWS services to publish events to AWS EventBridge handled automatically by AWS behind the hood without needing Roles or Resource based policies?

EC2 instance does not seem to need a policy added to a role attached to it

您的 EC2 实例不会向 EB 发布 其状态信息。它由后端的 EC2 服务本身完成。因此您不需要为此添加任何实例角色,因为 EC2 实例不参与此过程。

相比之下,如果您希望 EC2 上的应用程序 运行 将事件发布到 EB 总线上,则需要 实例角色

如果行为相同,我无法评论 AWS 中所有可能的服务,但我认为大多数服务的运行方式与 EC2 服务相同。