alicloud_resource_manager_delegated_administrator

更新时间:

Provides a Resource Manager Delegated Administrator resource.

For information about Resource Manager Delegated Administrator and how to use it, see What is Delegated Administrator.

-> NOTE: Available since v1.181.0.

Example Usage

Basic Usage


data "alicloud_resource_manager_accounts" "default" {
  status = "CreateSuccess"
}

resource "alicloud_resource_manager_delegated_administrator" "default" {
  account_id        = data.alicloud_resource_manager_accounts.default.accounts.0.account_id
  service_principal = "cloudfw.aliyuncs.com"
}

Argument Reference

The following arguments are supported:

  • account_id - (Required, ForceNew) The Alibaba Cloud account ID of the member in the resource directory.
  • service_principal - (Required, ForceNew) The identifier of the trusted service.

Attributes Reference

The following attributes are exported:

  • id - The ID of the resource supplied above.The value is formulated as <account_id>:<service_principal>.

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • create - (Defaults to 5 mins) Used when create the Delegated Administrator.
  • delete - (Defaults to 5 mins) Used when delete the Delegated Administrator.

Import

Resource Manager Delegated Administrator can be imported using the id, e.g.

$ terraform import alicloud_resource_manager_delegated_administrator.example <account_id>:<service_principal>