-
Notifications
You must be signed in to change notification settings - Fork 0
TF_TENCENTCLOUD_02
tongyiming edited this page Jan 25, 2024
·
4 revisions
tencentcloud_instance
The cvm does not allow the assignment of public IP addresses, that is, the allocate_public_ip
field cannot be set to true.
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
}
allocate_public_ip = true
}