Skip to content

Commit f626635

Browse files
authored
cam user support update password (#1847)
* cam user support update password * update password
1 parent 0b46f95 commit f626635

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.changelog/1847.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
resource/tencentcloud_cam_user: support update `password`
3+
```

tencentcloud/resource_tc_cam_user.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,12 @@ func resourceTencentCloudCamUserUpdate(d *schema.ResourceData, meta interface{})
355355
updateAttrs = append(updateAttrs, "console_login")
356356
}
357357

358+
if d.HasChange("password") {
359+
password := d.Get("password").(string)
360+
request.Password = helper.String(password)
361+
updateAttrs = append(updateAttrs, "password")
362+
}
363+
358364
if d.HasChange("need_reset_password") {
359365
resetBool := d.Get("need_reset_password").(bool)
360366
resetBool64 := uint64(0)

0 commit comments

Comments
 (0)