alicloud_dms_enterprise_authority_template

更新时间:

Provides a DMS Enterprise Authority Template resource.

For information about DMS Enterprise Authority Template and how to use it, see What is Authority Template.

-> NOTE: Available since v1.212.0.

Example Usage

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
}

Argument Reference

The following arguments are supported:

  • authority_template_name - (Required) Permission Template name.
  • description - (Optional) Permission template description information.
  • tid - (Required, ForceNew) Tenant ID.

Attributes Reference

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.

Timeouts

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.

Import

DMS Enterprise Authority Template can be imported using the id, e.g.

$ terraform import alicloud_dms_enterprise_authority_template.example <tid>:<authority_template_id>