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: "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.",
385
387
},
388
+
// role
389
+
"cam_role_name": {
390
+
Type: schema.TypeString,
391
+
ForceNew: true,
392
+
Optional: true,
393
+
Description: "CAM role name authorized to access.",
394
+
},
386
395
// Computed values.
387
396
"instance_status": {
388
397
Type: schema.TypeString,
@@ -434,6 +443,9 @@ func resourceTencentCloudInstanceCreate(d *schema.ResourceData, meta interface{}
434
443
ifv, ok:=d.GetOk("hostname"); ok {
435
444
request.HostName=helper.String(v.(string))
436
445
}
446
+
ifv, ok:=d.GetOk("cam_role_name"); ok {
447
+
request.CamRoleName=helper.String(v.(string))
448
+
}
437
449
438
450
ifv, ok:=d.GetOk("instance_charge_type"); ok {
439
451
instanceChargeType:=v.(string)
@@ -599,6 +611,10 @@ func resourceTencentCloudInstanceCreate(d *schema.ResourceData, meta interface{}
599
611
iferr!=nil {
600
612
log.Printf("[CRITAL]%s api[%s] fail, request body [%s], reason[%s]\n",
@@ -83,6 +84,7 @@ The following arguments are supported:
83
84
*`availability_zone` - (Required, ForceNew) The available zone for the CVM instance.
84
85
*`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
86
*`allocate_public_ip` - (Optional, ForceNew) Associate a public IP address with an instance in a VPC or Classic. Boolean value, Default is false.
87
+
*`cam_role_name` - (Optional, ForceNew) CAM role name authorized to access.
86
88
*`data_disks` - (Optional, ForceNew) Settings for data disks.
87
89
*`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
90
*`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.
0 commit comments