@@ -74,7 +74,6 @@ func ResourceTencentCloudInstance() *schema.Resource {
74
74
Optional : true ,
75
75
Computed : true ,
76
76
ValidateFunc : tccommon .ValidateInstanceType ,
77
- AtLeastOneOf : []string {"instance_type" , "launch_template_id" },
78
77
Description : "The type of the instance." ,
79
78
},
80
79
"hostname" : {
@@ -199,18 +198,16 @@ func ResourceTencentCloudInstance() *schema.Resource {
199
198
},
200
199
// vpc
201
200
"vpc_id" : {
202
- Type : schema .TypeString ,
203
- Optional : true ,
204
- Computed : true ,
205
- AtLeastOneOf : []string {"vpc_id" , "launch_template_id" },
206
- Description : "The ID of a VPC network. If you want to create instances in a VPC network, this parameter must be set." ,
201
+ Type : schema .TypeString ,
202
+ Optional : true ,
203
+ Computed : true ,
204
+ Description : "The ID of a VPC network. If you want to create instances in a VPC network, this parameter must be set." ,
207
205
},
208
206
"subnet_id" : {
209
- Type : schema .TypeString ,
210
- Optional : true ,
211
- Computed : true ,
212
- AtLeastOneOf : []string {"subnet_id" , "launch_template_id" },
213
- Description : "The ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set." ,
207
+ Type : schema .TypeString ,
208
+ Optional : true ,
209
+ Computed : true ,
210
+ Description : "The ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set." ,
214
211
},
215
212
"private_ip" : {
216
213
Type : schema .TypeString ,
@@ -225,7 +222,6 @@ func ResourceTencentCloudInstance() *schema.Resource {
225
222
Optional : true ,
226
223
Computed : true ,
227
224
ConflictsWith : []string {"orderly_security_groups" },
228
- AtLeastOneOf : []string {"security_groups" , "launch_template_id" },
229
225
Description : "A list of security group IDs to associate with." ,
230
226
Deprecated : "It will be deprecated. Use `orderly_security_groups` instead." ,
231
227
},
@@ -236,7 +232,6 @@ func ResourceTencentCloudInstance() *schema.Resource {
236
232
Optional : true ,
237
233
Computed : true ,
238
234
ConflictsWith : []string {"security_groups" },
239
- AtLeastOneOf : []string {"orderly_security_groups" , "launch_template_id" },
240
235
Description : "A list of orderly security group IDs to associate with." ,
241
236
},
242
237
// storage
0 commit comments