Using this data source can create Event Bridge service-linked roles(SLR). EventBridge may need to access another Alibaba Cloud service to implement a specific feature. In this case, EventBridge must assume a specific service-linked role, which is a Resource Access Management (RAM) role, to obtain permissions to access another Alibaba Cloud service.
For information about Event Bridge service-linked roles(SLR) and how to use it, see What is service-linked roles.
resource "alicloud_event_bridge_service_linked_role" "service_linked_role" {
product_name = "AliyunServiceRoleForEventBridgeSourceRocketMQ"
}
The following arguments are supported:
product_name
- (Required, ForceNew) The product name for SLR. EventBridge can automatically create the following service-linked roles:
Event source related: AliyunServiceRoleForEventBridgeSendToMNS
,AliyunServiceRoleForEventBridgeSourceRocketMQ
, AliyunServiceRoleForEventBridgeSourceActionTrail
, AliyunServiceRoleForEventBridgeSourceRabbitMQ
Target related: AliyunServiceRoleForEventBridgeConnectVPC
, AliyunServiceRoleForEventBridgeSendToFC
, AliyunServiceRoleForEventBridgeSendToSMS
, AliyunServiceRoleForEventBridgeSendToDirectMail
, AliyunServiceRoleForEventBridgeSendToRabbitMQ
, AliyunServiceRoleForEventBridgeSendToRocketMQ
id
- The ID of the DataSource. The value is same as product_name
.Event Bridge service-linked roles(SLR) can be imported using the id, e.g.
$ terraform import alicloud_event_bridge_service_linked_role.example <product_name>