alicloud_config_aggregator
更新时间:
Provides a Cloud Config Aggregator resource.
For information about Cloud Config Aggregate Config Rule and how to use it, see What is Aggregator.
-> NOTE: Available since v1.124.0.
Example Usage
Basic Usage
variable "name" {
default = "tf_example"
}
data "alicloud_resource_manager_accounts" "default" {
status = "CreateSuccess"
}
resource "alicloud_config_aggregator" "default" {
aggregator_accounts {
account_id = data.alicloud_resource_manager_accounts.default.accounts.0.account_id
account_name = data.alicloud_resource_manager_accounts.default.accounts.0.display_name
account_type = "ResourceDirectory"
}
aggregator_name = var.name
description = var.name
aggregator_type = "CUSTOM"
}
Argument Reference
The following arguments are supported:
aggregator_accounts
- (Optional) The information of account in aggregator. If the aggregator_type is RD, it is optional and means add all members in the resource directory to the account group. Seeaggregator_accounts
below. NOTE: the fieldaggregator_accounts
is not required from version 1.148.0.aggregator_name
- (Required) The name of aggregator.aggregator_type
- (Optional, ForceNew) The type of aggregator. Valid values:CUSTOM
,RD
. The Default value:CUSTOM
.CUSTOM
- The custom account group.RD
- The global account group.
description
- (Required) The description of aggregator.
aggregator_accounts
The aggregator_accounts supports the following:
account_id
- (Required) Aggregator account Uid.account_name
- (Required) Aggregator account name.account_type
- (Required) Aggregator account source type. Valid values:ResourceDirectory
.
Attributes Reference
The following attributes are exported:
id
- The resource ID in terraform of Aggregator.status
- The status of the resource. Valid values:0
: creating1
: normal2
: deleting.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 1 mins) Used when create the Aggregator.
Import
Cloud Config Aggregator can be imported using the id, e.g.
$ terraform import alicloud_config_aggregator.example <id>
文档内容是否对您有帮助?