Provides a DMS Enterprise Authority Template resource.
For information about DMS Enterprise Authority Template and how to use it, see What is Authority Template.
Basic Usage
variable "name" {
default = "terraform-example"
}
provider "alicloud" {
region = "cn-hangzhou"
}
data "alicloud_dms_user_tenants" "default" {
status = "ACTIVE"
}
resource "alicloud_dms_enterprise_authority_template" "default" {
tid = "${data.alicloud_dms_user_tenants.default.ids.0}"
authority_template_name = var.name
description = var.name
}
The following arguments are supported:
authority_template_name
- (Required) Permission Template name.description
- (Optional) Permission template description information.tid
- (Required, ForceNew) Tenant ID.The following attributes are exported:
id
- The ID of the resource supplied above.The value is formulated as <tid>:<authority_template_id>
.authority_template_id
- Permission template ID.create_time
- The creation time of the resource.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 mins) Used when create the Authority Template.delete
- (Defaults to 5 mins) Used when delete the Authority Template.update
- (Defaults to 5 mins) Used when update the Authority Template.DMS Enterprise Authority Template can be imported using the id, e.g.
$ terraform import alicloud_dms_enterprise_authority_template.example <tid>:<authority_template_id>