Provides a RAM User Login Profile resource.
# Create a RAM login profile. resource "alicloud_ram_user" "user" { name = "user_test" display_name = "user_display_name" mobile = "86-18688888888" email = "[email protected]" comments = "yoyoyo" force = true } resource "alicloud_ram_login_profile" "profile" { user_name = "${alicloud_ram_user.user.name}" password = "Haha..1234" }
The following arguments are supported:
user_name
- (Required, Forces new resource) 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) Password of the RAM user. mfa_bind_required
- (Optional) This parameter indicates whether the MFA needs to be bind when the user first logs in. Default value is false
. password_reset_required
- (Optional) This parameter indicates whether the password needs to be reset when the user first logs in. Default value is false
. The following attributes are exported:
id
- The login profile ID. user_name
- The user name. mfa_bind_required
- The parameter which indicates whether the MFA needs to be bind when the user first logs in. password_reset_required
- The parameter which indicates whether the password needs to be reset when the user first logs in. RAM login profile can be imported using the id or user name, e.g.
$ terraform import alicloud_ram_login_profile.example my-login
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/alicloud/r/ram_login_profile.html