alicloud_hbr_vault
更新时间:
Provides a Hybrid Backup Recovery (HBR) Vault resource.
Where backup or archived data is stored.
For information about Hybrid Backup Recovery (HBR) Vault and how to use it, see What is Vault.
-> NOTE: Available since v1.129.0.
Example Usage
Basic Usage
resource "random_integer" "default" {
min = 10000
max = 99999
}
resource "alicloud_hbr_vault" "example" {
vault_name = "example_value_${random_integer.default.result}"
}
Argument Reference
The following arguments are supported:
description- (Optional) The description of Vault. Defaults to an empty string.encrypt_type- (Optional, ForceNew, Available since v1.173.0) Source Encryption Type,It is valid only when vault_type isSTANDARDorOTS_BACKUP. Default value:HBR_PRIVATE. Valid values:HBR_PRIVATE: HBR is fully hosted, uses the backup service's own encryption method.KMS: Use Alibaba Cloud Kms to encryption.
kms_key_id- (Optional, ForceNew, Available since v1.173.0) The key id or alias name of Alibaba Cloud Kms. It is required and valid only when encrypt_type isKMS.resource_group_id- (Optional, Available since v1.243.0) The ID of the resource group.tags- (Optional, Map, Available since v1.243.0) The tag of the resource.vault_name- (Required) The name of Vault.vault_storage_class- (Optional, ForceNew) The storage class of Vault. Valid values:STANDARD.vault_type- (Optional, ForceNew) The type of Vault. Valid values:STANDARD: Standard backup vault.OTS_BACKUP: Backup vault for Tablestore. NOTE: We recommend that you useSTANDARD. The cloud backup product will upgrade the backup vault, and thevault_typewill be changed fromOTS_BACKUPtoSTANDARD.
worm_enabled- (Optional, Bool, Available since v1.243.0) Indicates whether the immutable backup feature is enabled. Valid values:true,false.redundancy_type- (Removed since v1.209.1) The redundancy type of the vault. NOTE: Fieldredundancy_typehas been removed from provider version 1.209.1.
Attributes Reference
The following attributes are exported:
id- The resource ID in terraform of Vault.status- The status of the Vault.create_time- (Available since v1.243.0) The time when the backup vault was created.region_id- (Available since v1.243.0) The ID of the region in which the backup vault resides.
Timeouts
The timeouts block allows you to specify timeouts for certain actions:
create- (Defaults to 5 mins) Used when create the Vault.delete- (Defaults to 10 mins) Used when delete the Vault.update- (Defaults to 5 mins) Used when update the Vault.
Import
Hybrid Backup Recovery (HBR) Vault can be imported using the id, e.g.
$ terraform import alicloud_hbr_vault.example <id>
该文章对您有帮助吗?