alicloud_resource_manager_account

Provides a Resource Manager Account resource. Member accounts are containers for resources in a resource directory. These accounts isolate resources and serve as organizational units in the resource directory. You can create member accounts in a folder and then manage them in a unified manner. For information about Resource Manager Account and how to use it, see What is Resource Manager Account.

Example Usage

variable "name" {
  default = "tf-example"
}
variable "display_name" {
  default = "EAccount"
}

resource "random_integer" "default" {
  min = 10000
  max = 99999
}

data "alicloud_resource_manager_folders" "example" {

}

resource "alicloud_resource_manager_account" "example" {
  display_name = "${var.display_name}-${random_integer.default.result}"
  folder_id    = data.alicloud_resource_manager_folders.example.ids.0
}

Deleting alicloud_resource_manager_account or removing it from your configuration

Deleting the resource manager account or removing it from your configuration will remove it from your state file and management, but may not destroy the account. If there are some dependent resource in the account, the deleting account will enter a silence period of 45 days. After the silence period ends, the system automatically starts to delete the member. See More Details.

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Timeouts

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

Import

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

$ terraform import alicloud_resource_manager_account.example 13148890145*****