Using this data source can create Dbfs service-linked roles(SLR). Dbfs may need to access another Alibaba Cloud service to implement a specific feature. In this case, Dbfs 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 Dbfs service-linked roles(SLR) and how to use it, see What is service-linked roles.
provider "alicloud" {
region = "cn-hangzhou"
}
resource "alicloud_dbfs_service_linked_role" "service_linked_role" {
product_name = "AliyunServiceRoleForDbfs"
}
The following arguments are supported:
product_name
- (Required, ForceNew) The product name for SLR. Dbfs can automatically create the following service-linked roles: AliyunServiceRoleForDbfs
.id
- The ID of the Resource. The value is same as product_name
.status
- The status of the service Associated role. Valid Values: true
: Created. false
: not created.Dbfs service-linked roles(SLR) can be imported using the id, e.g.
$ terraform import alicloud_dbfs_service_linked_role.example <product_name>