You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: "Whether to enable performance burst when creating a cloud disk.",
139
139
},
140
+
"encrypt_type": {
141
+
Type: schema.TypeString,
142
+
Optional: true,
143
+
ForceNew: true,
144
+
Computed: true,
145
+
Description: "Specifies the cloud disk encryption type. The values are `ENCRYPT_V1` and `ENCRYPT_V2`, which represent the first-generation and second-generation encryption technologies respectively. The two encryption technologies are incompatible with each other. It is recommended to use the second-generation encryption technology `ENCRYPT_V2` first. The first-generation encryption technology is only supported on some older models. This parameter is only valid when creating an encrypted cloud disk.",
146
+
},
140
147
// computed
141
148
"storage_status": {
142
149
Type: schema.TypeString,
@@ -227,6 +234,10 @@ func resourceTencentCloudCbsStorageCreate(d *schema.ResourceData, meta interface
### Create an encrypted CBS storage with encrypt_type
73
+
74
+
```hcl
75
+
resource "tencentcloud_cbs_storage" "example" {
76
+
storage_name = "tf-example"
77
+
storage_type = "CLOUD_SSD"
78
+
storage_size = 100
79
+
availability_zone = "ap-guangzhou-3"
80
+
project_id = 0
81
+
encrypt = true
82
+
encrypt_type = "ENCRYPT_V2"
83
+
84
+
tags = {
85
+
createBy = "Terraform"
86
+
}
87
+
}
88
+
```
89
+
72
90
### Create a dedicated cluster CBS storage
73
91
74
92
```hcl
@@ -100,6 +118,7 @@ The following arguments are supported:
100
118
*`charge_type` - (Optional, String) The charge type of CBS instance. Valid values are `PREPAID`, `POSTPAID_BY_HOUR`, `CDCPAID` and `DEDICATED_CLUSTER_PAID`. The default is `POSTPAID_BY_HOUR`.
*`disk_backup_quota` - (Optional, Int) The quota of backup points of cloud disk.
121
+
*`encrypt_type` - (Optional, String, ForceNew) Specifies the cloud disk encryption type. The values are `ENCRYPT_V1` and `ENCRYPT_V2`, which represent the first-generation and second-generation encryption technologies respectively. The two encryption technologies are incompatible with each other. It is recommended to use the second-generation encryption technology `ENCRYPT_V2` first. The first-generation encryption technology is only supported on some older models. This parameter is only valid when creating an encrypted cloud disk.
103
122
*`encrypt` - (Optional, Bool, ForceNew) Pass in this parameter to create an encrypted cloud disk.
104
123
*`force_delete` - (Optional, Bool) Indicate whether to delete CBS instance directly or not. Default is false. If set true, the instance will be deleted instead of staying recycle bin.
105
124
*`kms_key_id` - (Optional, String, ForceNew) Optional parameters. When purchasing an encryption disk, customize the key. When this parameter is passed in, the `encrypt` parameter need be set.
0 commit comments