» 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

# Add a Resource Manager Account.
resource "alicloud_resource_manager_folder" "f1" {
  folder_name = "test1"
}

resource "alicloud_resource_manager_account" "example" {
  display_name = "RDAccount"
  folder_id = alicloud_resource_manager_folder.f1.id
}

» Argument Reference

The following arguments are supported:

  • display_name - (Required) Member name. The length is 2 ~ 50 characters or Chinese characters, which can include Chinese characters, English letters, numbers, underscores (_), dots (.) And dashes (-).
  • folder_id - (Optional) The ID of the parent folder.
  • payer_account_id - (Optional, ForceNew) Settlement account ID. If the value is empty, the current account will be used for settlement.

» Attributes Reference

The following attributes are exported:

  • id - This ID of Resource Manager Account.
  • join_method - Ways for members to join the resource directory. Valid values: invited, created.
  • join_time - The time when the member joined the resource directory.
  • modify_time - The modification time of the invitation.
  • resource_directory_id - Resource directory ID.
  • status - Member joining status. Valid values: CreateSuccess,CreateVerifying,CreateFailed,CreateExpired,CreateCancelled,PromoteVerifying,PromoteFailed,PromoteExpired,PromoteCancelled,PromoteSuccess,InviteSuccess,Removed.
  • type - Member type. The value of ResourceAccount indicates the resource account.

» Import

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

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