alicloud_ram_login_profile
更新时间:
Provides a RAM User Login Profile resource.
For information about RAM User Login Profile and how to use it, see What is Login Profile.
-> NOTE: Available since v1.0.0.
Example Usage
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"
}
Argument Reference
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. Valid values:true
,false
. To enhance the security of your resources and data, the default value has been changed totrue
.
Attributes Reference
The following attributes are exported:
id
- The resource ID in terraform of Login Profile. It same as theuser_name
.
Import
RAM login profile can be imported using the id, e.g.
$ terraform import alicloud_ram_login_profile.example <id>
文档内容是否对您有帮助?