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: "AddressType. Default value: WanIP. For beta users of dedicated IP. the value can be: HighQualityEIP: Dedicated IP. Note that dedicated IPs are only available in partial regions. For beta users of Anti-DDoS IP, the value can be: AntiDDoSEIP: Anti-DDoS EIP. Note that Anti-DDoS IPs are only available in partial regions.",
170
+
},
171
+
"anti_ddos_package_id": {
172
+
Type: schema.TypeString,
173
+
Optional: true,
174
+
Description: "Anti-DDoS service package ID. This is required when you want to request an AntiDDoS IP.",
175
+
},
176
+
"is_keep_eip": {
177
+
Type: schema.TypeBool,
178
+
Optional: true,
179
+
Computed: true,
180
+
Description: "Whether to delete the bound EIP when the instance is destroyed. Range of values: True: retain the EIP; False: not retain the EIP. Note that when the IPv4AddressType field specifies the EIP type, the default behavior is not to retain the EIP. WanIP is unaffected by this field and will always be deleted with the instance. Changing this field configuration will take effect immediately for resources already bound to a scaling group.",
181
+
},
159
182
"password": {
160
183
Type: schema.TypeString,
161
184
Optional: true,
@@ -370,6 +393,18 @@ func resourceTencentCloudAsScalingConfigCreate(d *schema.ResourceData, meta inte
Description: "AddressType. Default value: WanIP. For beta users of dedicated IP. the value can be: HighQualityEIP: Dedicated IP. Note that dedicated IPs are only available in partial regions. For beta users of Anti-DDoS IP, the value can be: AntiDDoSEIP: Anti-DDoS EIP. Note that Anti-DDoS IPs are only available in partial regions.",
207
+
},
208
+
"anti_ddos_package_id": {
209
+
Type: schema.TypeString,
210
+
Optional: true,
211
+
ForceNew: true,
212
+
Computed: true,
213
+
Description: "Anti-DDoS service package ID. This is required when you want to request an AntiDDoS IP.",
214
+
},
200
215
// vpc
201
216
"vpc_id": {
202
217
Type: schema.TypeString,
@@ -654,6 +669,16 @@ func resourceTencentCloudInstanceCreate(d *schema.ResourceData, meta interface{}
Copy file name to clipboardExpand all lines: tencentcloud/services/cvm/resource_tc_instance.md
+34Lines changed: 34 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,8 @@ Provides a CVM instance resource.
8
8
9
9
~> **NOTE:** When creating a CVM instance using a `launch_template_id`, if you set other parameter values at the same time, the template definition values will be overwritten.
10
10
11
+
~> **NOTE:** It is recommended to use resource `tencentcloud_eip` to create a AntiDDos Eip, and then call resource `tencentcloud_eip_association` to bind it to resource `tencentcloud_instance`.
0 commit comments