Provides a Resource Manager Resource Group resource. If you need to group cloud resources according to business departments, projects, and other dimensions, you can create resource groups.
For information about Resource Manager Resource Group and how to use it, see What is Resource Group.
Basic Usage
variable "name" {
default = "tf-example"
}
resource "alicloud_resource_manager_resource_group" "example" {
display_name = var.name
resource_group_name = var.name
}
The following arguments are supported:
display_name
- (Required) The display name of the resource group. The name must be 1 to 50 characters in length.resource_group_name
- (Optional, ForceNew, Available since v1.114.0) The unique identifier of the resource group. The identifier must be 3 to 50 characters in length and can contain letters, digits, and hyphens (-). The identifier must start with a letter.tags
- (Optional, Available since v1.220.0) A mapping of tags to assign to the resource.name
- (Optional, ForceNew, Deprecated since v1.114.0) Field name
has been deprecated from provider version 1.114.0. New field resource_group_name
instead.The following attributes are exported:
id
- The resource ID in terraform of Resource Group.account_id
- The ID of the Alibaba Cloud account to which the resource group belongs.status
- The status of the resource group.region_statuses
- The status of the resource group in all regions.
region_id
- The status of the region.status
- The status of the resource group.create_date
- (Removed since v1.114.0) The time when the resource group was created. NOTE: Field create_date
has been removed from provider version 1.114.0.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 11 mins) Used when create the Resource Group.Resource Manager Resource Group can be imported using the id, e.g.
$ terraform import alicloud_resource_manager_resource_group.example <id>