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.",
386
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
+
},
387
395
// Computed values.
388
396
"instance_status": {
389
397
Type: schema.TypeString,
@@ -435,6 +443,9 @@ func resourceTencentCloudInstanceCreate(d *schema.ResourceData, meta interface{}
435
443
ifv, ok:=d.GetOk("hostname"); ok {
436
444
request.HostName=helper.String(v.(string))
437
445
}
446
+
ifv, ok:=d.GetOk("cam_role_name"); ok {
447
+
request.CamRoleName=helper.String(v.(string))
448
+
}
438
449
439
450
ifv, ok:=d.GetOk("instance_charge_type"); ok {
440
451
instanceChargeType:=v.(string)
@@ -780,6 +791,7 @@ func resourceTencentCloudInstanceRead(d *schema.ResourceData, meta interface{})
@@ -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