Provides a RAM User Login Profile resource.
For information about RAM User Login Profile and how to use it, see What is Login Profile.
Basic Usage
resource "alicloud_ram_user" "user" {
name = "terraform_example"
display_name = "terraform_example"
mobile = "86-18688888888"
email = "hello.uuu@aaa.com"
comments = "terraform_example"
force = true
}
resource "alicloud_ram_login_profile" "profile" {
user_name = alicloud_ram_user.user.name
password = "Example_1234"
}
The following arguments are supported:
user_name
- (Required, ForceNew) The name of the RAM user. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen.password
- (Required, Sensitive) The logon password of the RAM user. The password must meet the password strength requirements.password_reset_required
- (Optional, Bool) Specifies whether the RAM user must change the password upon logon. Default value: false
. Valid values: true
, false
.mfa_bind_required
- (Optional, Bool) Specifies whether an MFA device must be attached to the RAM user upon logon. Default value: false
. Valid values: true
, false
.The following attributes are exported:
id
- The resource ID in terraform of Login Profile. It same as the user_name
.RAM login profile can be imported using the id, e.g.
$ terraform import alicloud_ram_login_profile.example <id>