-
Notifications
You must be signed in to change notification settings - Fork 0
TF_TENCENTCLOUD_01
tongyiming edited this page Jan 25, 2024
·
3 revisions
tencentcloud_instance
Ensures that CVM are using delete_with_instance
and is true.
In order to release data disks when the instance is deleted.
More information: https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/latest/docs/resources/instance
resource "tencentcloud_instance" "foo" {
instance_name = "name"
availability_zone = "ap-guangzhou-x"
image_id = "xxx"
instance_type = "xxx"
system_disk_type = "CLOUD_PREMIUM"
data_disks {
data_disk_type = "CLOUD_PREMIUM"
data_disk_size = 50
delete_with_instance = true
}
}
resource "tencentcloud_instance" "foo" {
instance_name = "name"
availability_zone = "ap-guangzhou-x"
image_id = "xxx"
instance_type = "xxx"
system_disk_type = "CLOUD_PREMIUM"
data_disks {
data_disk_type = "CLOUD_PREMIUM"
data_disk_size = 50
delete_with_instance = false
}
}