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: "The name of the CVM. The max length of instance_name is 60, and default value is `Terraform-CVM-Instance`.",
123
+
Description: "The name of the instance. The max length of instance_name is 60, and default value is `Terraform-CVM-Instance`.",
124
124
},
125
125
"instance_type": {
126
126
Type: schema.TypeString,
127
127
Optional: true,
128
128
Computed: true,
129
129
ValidateFunc: validateInstanceType,
130
-
Description: "The type of instance to start.",
130
+
Description: "The type of the instance.",
131
131
},
132
132
"hostname": {
133
133
Type: schema.TypeString,
134
134
Optional: true,
135
135
ForceNew: true,
136
-
Description: "The hostname of CVM. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-).",
136
+
Description: "The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-).",
137
137
},
138
138
"project_id": {
139
139
Type: schema.TypeInt,
140
140
Optional: true,
141
141
Default: 0,
142
-
Description: "The project CVM belongs to, default to 0.",
142
+
Description: "The project the instance belongs to, default to 0.",
143
143
},
144
144
"running_flag": {
145
145
Type: schema.TypeBool,
146
146
Optional: true,
147
147
Default: true,
148
-
Description: "Set instance to running or stop. Default value is true, the instance will shutdown when flag is false.",
148
+
Description: "Set instance to running or stop. Default value is true, the instance will shutdown when this flag is false.",
Description: "Max price of spot instance, is the format of decimal string, for example \"0.50\". Note: it only works when instance_charge_type is set to `SPOTPAID`.",
189
+
Description: "Max price of a spot instance, is the format of decimal string, for example \"0.50\". Note: it only works when instance_charge_type is set to `SPOTPAID`.",
Description: "Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bit per second). This value does not need to be set when `allocate_public_ip` is false.",
204
+
Description: "Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bits per second). This value does not need to be set when `allocate_public_ip` is false.",
205
205
},
206
206
"allocate_public_ip": {
207
207
Type: schema.TypeBool,
208
208
Optional: true,
209
209
Default: false,
210
210
ForceNew: true,
211
-
Description: "Associate a public ip address with an instance in a VPC or Classic. Boolean value, Default is false.",
211
+
Description: "Associate a public IP address with an instance in a VPC or Classic. Boolean value, Default is false.",
212
212
},
213
213
// vpc
214
214
"vpc_id": {
215
215
Type: schema.TypeString,
216
216
Optional: true,
217
217
Computed: true,
218
-
Description: "The id of a VPC network. If you want to create instances in VPC network, this parameter must be set.",
218
+
Description: "The ID of a VPC network. If you want to create instances in a VPC network, this parameter must be set.",
219
219
},
220
220
"subnet_id": {
221
221
Type: schema.TypeString,
222
222
Optional: true,
223
223
Computed: true,
224
-
Description: "The id of a VPC subnetwork. If you want to create instances in VPC network, this parameter must be set.",
224
+
Description: "The ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set.",
225
225
},
226
226
"private_ip": {
227
227
Type: schema.TypeString,
228
228
Optional: true,
229
229
Computed: true,
230
-
Description: "The private ip to be assigned to this instance, must be in the provided subnet and available.",
230
+
Description: "The private IP to be assigned to this instance, must be in the provided subnet and available.",
231
231
},
232
232
// security group
233
233
"security_groups": {
234
234
Type: schema.TypeSet,
235
235
Elem: &schema.Schema{Type: schema.TypeString},
236
236
Optional: true,
237
237
Computed: true,
238
-
Description: "A list of security group ids to associate with.",
238
+
Description: "A list of security group IDs to associate with.",
Description: "The key pair to use for the instance, it looks like skey-16jig7tx.",
333
+
Description: "The key pair to use for the instance, it looks like `skey-16jig7tx`.",
334
334
},
335
335
"password": {
336
336
Type: schema.TypeString,
337
337
Optional: true,
338
338
Sensitive: true,
339
-
Description: "Password to an instance. In order to take effect new password, the instance will be restarted after modifying the password.",
339
+
Description: "Password for the instance. In order for the new password to take effect, the instance will be restarted after the password change.",
340
340
},
341
341
"user_data": {
342
342
Type: schema.TypeString,
343
343
Optional: true,
344
344
ForceNew: true,
345
345
ConflictsWith: []string{"user_data_raw"},
346
-
Description: "The user data to be specified into this instance. Must be encrypted in base64 format and limited in 16 KB.",
346
+
Description: "The user data to be injected into this instance. Must be base64 encoded and up to 16 KB.",
347
347
},
348
348
"user_data_raw": {
349
349
Type: schema.TypeString,
350
350
Optional: true,
351
351
ForceNew: true,
352
352
ConflictsWith: []string{"user_data"},
353
-
Description: "The user data to be specified into this instance, plain text. Conflicts with `user_data`. Limited in 16 KB after encrypted in base64 format.",
353
+
Description: "The user data to be injected into this instance, in plain text. Conflicts with `user_data`. Up to 16 KB after base64 encoded.",
Description: "Indicate whether to delete instance directly or not. Default is false. If set true, the instance will be permanently deleted instead of staying in recycle bin. Note: only works for `PREPAID` instance.",
364
+
Description: "Indicate whether to force delete the instance. Default is false. If set true, the instance will be permanently deleted instead of being moved into the recycle bin. Note: only works for `PREPAID` instance.",
*`availability_zone` - (Required, ForceNew) The available zone that the CVM instance locates at.
84
-
*`image_id` - (Required, ForceNew) The Image to use for the instance. Change 'image_id' will case instance destroy and re-created.
85
-
*`allocate_public_ip` - (Optional, ForceNew) Associate a public ip address with an instance in a VPC or Classic. Boolean value, Default is false.
86
-
*`data_disks` - (Optional, ForceNew) Settings for data disk.
83
+
*`availability_zone` - (Required, ForceNew) The available zone for the CVM instance.
84
+
*`image_id` - (Required, ForceNew) The image to use for the instance. Changing `image_id` will cause the instance to be destroyed and re-created.
85
+
*`allocate_public_ip` - (Optional, ForceNew) Associate a public IP address with an instance in a VPC or Classic. Boolean value, Default is false.
86
+
*`data_disks` - (Optional, ForceNew) Settings for data disks.
87
87
*`disable_monitor_service` - (Optional) Disable enhance service for monitor, it is enabled by default. When this options is set, monitor agent won't be installed.
88
88
*`disable_security_service` - (Optional) Disable enhance service for security, it is enabled by default. When this options is set, security agent won't be installed.
89
-
*`force_delete` - (Optional) Indicate whether to delete instance directly or not. Default is false. If set true, the instance will be permanently deleted instead of staying in recycle bin. Note: only works for `PREPAID` instance.
90
-
*`hostname` - (Optional, ForceNew) The hostname of CVM. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-).
89
+
*`force_delete` - (Optional) Indicate whether to force delete the instance. Default is false. If set true, the instance will be permanently deleted instead of being moved into the recycle bin. Note: only works for `PREPAID` instance.
90
+
*`hostname` - (Optional, ForceNew) The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-).
91
91
*`instance_charge_type_prepaid_period` - (Optional) The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to `PREPAID`. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
92
92
*`instance_charge_type_prepaid_renew_flag` - (Optional) When enabled, the CVM instance will be renew automatically when it reach the end of the prepaid tenancy. Valid values are `NOTIFY_AND_AUTO_RENEW`, `NOTIFY_AND_MANUAL_RENEW` and `DISABLE_NOTIFY_AND_MANUAL_RENEW`. NOTE: it only works when instance_charge_type is set to `PREPAID`.
93
93
*`instance_charge_type` - (Optional, ForceNew) The charge type of instance. Valid values are `PREPAID`, `POSTPAID_BY_HOUR` and `SPOTPAID`, The default is `POSTPAID_BY_HOUR`. Note: TencentCloud International only supports `POSTPAID_BY_HOUR`. `PREPAID` instance may not allow to delete before expired. `SPOTPAID` instance must set `spot_instance_type` and `spot_max_price` at the same time.
94
-
*`instance_name` - (Optional) The name of the CVM. The max length of instance_name is 60, and default value is `Terraform-CVM-Instance`.
95
-
*`instance_type` - (Optional) The type of instance to start.
94
+
*`instance_name` - (Optional) The name of the instance. The max length of instance_name is 60, and default value is `Terraform-CVM-Instance`.
95
+
*`instance_type` - (Optional) The type of the instance.
96
96
*`internet_charge_type` - (Optional, ForceNew) Internet charge type of the instance, Valid values are `BANDWIDTH_PREPAID`, `TRAFFIC_POSTPAID_BY_HOUR`, `BANDWIDTH_POSTPAID_BY_HOUR` and `BANDWIDTH_PACKAGE`. This value does not need to be set when `allocate_public_ip` is false.
97
-
*`internet_max_bandwidth_out` - (Optional) Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bit per second). This value does not need to be set when `allocate_public_ip` is false.
98
-
*`key_name` - (Optional) The key pair to use for the instance, it looks like skey-16jig7tx.
99
-
*`password` - (Optional) Password to an instance. In order to take effect new password, the instance will be restarted after modifying the password.
100
-
*`placement_group_id` - (Optional, ForceNew) The id of a placement group.
101
-
*`private_ip` - (Optional) The private ip to be assigned to this instance, must be in the provided subnet and available.
102
-
*`project_id` - (Optional) The project CVM belongs to, default to 0.
103
-
*`running_flag` - (Optional) Set instance to running or stop. Default value is true, the instance will shutdown when flag is false.
104
-
*`security_groups` - (Optional) A list of security group ids to associate with.
97
+
*`internet_max_bandwidth_out` - (Optional) Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bits per second). This value does not need to be set when `allocate_public_ip` is false.
98
+
*`key_name` - (Optional) The key pair to use for the instance, it looks like `skey-16jig7tx`.
99
+
*`password` - (Optional) Password for the instance. In order for the new password to take effect, the instance will be restarted after the password change.
100
+
*`placement_group_id` - (Optional, ForceNew) The ID of a placement group.
101
+
*`private_ip` - (Optional) The private IP to be assigned to this instance, must be in the provided subnet and available.
102
+
*`project_id` - (Optional) The project the instance belongs to, default to 0.
103
+
*`running_flag` - (Optional) Set instance to running or stop. Default value is true, the instance will shutdown when this flag is false.
104
+
*`security_groups` - (Optional) A list of security group IDs to associate with.
105
105
*`spot_instance_type` - (Optional) Type of spot instance, only support `ONE-TIME` now. Note: it only works when instance_charge_type is set to `SPOTPAID`.
106
-
*`spot_max_price` - (Optional, ForceNew) Max price of spot instance, is the format of decimal string, for example "0.50". Note: it only works when instance_charge_type is set to `SPOTPAID`.
107
-
*`subnet_id` - (Optional) The id of a VPC subnetwork. If you want to create instances in VPC network, this parameter must be set.
106
+
*`spot_max_price` - (Optional, ForceNew) Max price of a spot instance, is the format of decimal string, for example "0.50". Note: it only works when instance_charge_type is set to `SPOTPAID`.
107
+
*`subnet_id` - (Optional) The ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set.
108
108
*`system_disk_id` - (Optional) System disk snapshot ID used to initialize the system disk. When system disk type is `LOCAL_BASIC` and `LOCAL_SSD`, disk id is not supported.
109
-
*`system_disk_size` - (Optional, ForceNew) Size of the system disk. Value range: [50, 1000], and unit is GB. Default is 50GB.
109
+
*`system_disk_size` - (Optional, ForceNew) Size of the system disk. Value range: [50, 1000], and the unit is GB. Default is 50GB.
110
110
*`system_disk_type` - (Optional, ForceNew) Type of the system disk. Valid values are `LOCAL_BASIC`, `LOCAL_SSD`, `CLOUD_BASIC`, `CLOUD_SSD` and `CLOUD_PREMIUM`, default value is `CLOUD_BASIC`. NOTE: `LOCAL_BASIC` and `LOCAL_SSD` are deprecated.
111
111
*`tags` - (Optional) A mapping of tags to assign to the resource. For tag limits, please refer to [Use Limits](https://intl.cloud.tencent.com/document/product/651/13354).
112
-
*`user_data_raw` - (Optional, ForceNew) The user data to be specified into this instance, plain text. Conflicts with `user_data`. Limited in 16 KB after encrypted in base64 format.
113
-
*`user_data` - (Optional, ForceNew) The user data to be specified into this instance. Must be encrypted in base64 format and limited in 16 KB.
114
-
*`vpc_id` - (Optional) The id of a VPC network. If you want to create instances in VPC network, this parameter must be set.
112
+
*`user_data_raw` - (Optional, ForceNew) The user data to be injected into this instance, in plain text. Conflicts with `user_data`. Up to 16 KB after base64 encoded.
113
+
*`user_data` - (Optional, ForceNew) The user data to be injected into this instance. Must be base64 encoded and up to 16 KB.
114
+
*`vpc_id` - (Optional) The ID of a VPC network. If you want to create instances in a VPC network, this parameter must be set.
115
115
116
116
The `data_disks` object supports the following:
117
117
@@ -130,7 +130,7 @@ In addition to all arguments above, the following attributes are exported:
130
130
*`create_time` - Create time of the instance.
131
131
*`expired_time` - Expired time of the instance.
132
132
*`instance_status` - Current status of the instance.
0 commit comments