Provides a RDS Service Linked Role.
For information about RDS Service Linked Role and how to use it, see What is Service Linked Role..
Basic Usage
resource "alicloud_rds_service_linked_role" "default" {
service_name = "AliyunServiceRoleForRdsPgsqlOnEcs"
}
The following arguments are supported:
service_name
- (Required, ForceNew) The product name for SLR. RDS can automatically create the following service-linked roles: AliyunServiceRoleForRdsPgsqlOnEcs
, AliyunServiceRoleForRDSProxyOnEcs
.The following attributes are exported:
id
- The resource ID of Service Linked Role. The value formats as <service_name>
.role_name
- The name of the role.role_id
- The ID of the role.arn
- The Alibaba Cloud Resource Name (ARN) of the role.RDS Service Linked Role can be imported using the id, e.g.
$ terraform import alicloud_rds_service_linked_role.default <service_name>