alicloud_config_configuration_recorder
Provides a Alicloud Config Configuration Recorder resource. Cloud Config is a specialized service for evaluating resources. Cloud Config tracks configuration changes of your resources and evaluates configuration compliance. Cloud Config can help you evaluate numerous resources and maintain the continuous compliance of your cloud infrastructure. For information about Alicloud Config Configuration Recorder and how to use it, see What is Configuration Recorder.
-> NOTE: Available since v1.99.0.
-> NOTE: The Cloud Config region only support cn-shanghai
and ap-southeast-1
.
Example Usage
resource "alicloud_config_configuration_recorder" "example" {
resource_types = [
"ACS::ECS::Instance",
"ACS::ECS::Disk"
# other resource types ...
]
}
Argument Reference
The following arguments are supported:
enterprise_edition
- (Optional, ForceNew) - Whether to use the enterprise version configuration audit. Valid values:true
andfalse
. Default valuefalse
. For enterprise accounts, We recommend you to use the resource alicloud_config_aggregator.resource_types
- (Optional) A list of resource types to be monitored. Resource types that support Cloud Config.- If you use an ordinary account, the
resource_types
supports the update operation after the process of creation is completed. - If you use an enterprise account, the
resource_types
does not support updating.
- If you use an ordinary account, the
Attributes Reference
The following attributes are exported:
id
- This ID of Config Configuration Recorder. Value as alicloud account ID.status
- Status of resource monitoring. Values:REGISTRABLE
: Not registered,BUILDING
: Under construction,REGISTERED
: Registered andREBUILDING
: Rebuilding.organization_enable_status
- Enterprise version configuration audit enabled status. Values:REGISTRABLE
: Not enabled,BUILDING
: Building andREGISTERED
: Enabled.organization_master_id
- The ID of the Enterprise management account.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
update
- (Defaults to 11 mins) Used when updating the Config Configuration Recorder.
Import
Alicloud Config Configuration Recorder can be imported using the id, e.g.
$ terraform import alicloud_config_configuration_recorder.example 122378463********