alicloud_ram_login_profile

更新时间:

Provides a RAM Login Profile resource.

For information about RAM 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:

  • mfa_bind_required - (Optional, Computed) Specifies whether to forcefully enable multi-factor authentication (MFA) for the RAM user. Valid values:
    • true: forcefully enables MFA for the RAM user. The RAM user must bind an MFA device upon the next logon.
    • false (default): does not forcefully enable MFA for the RAM user.
  • password - (Required, Sensitive) The password must meet the Password strength requirements. For more information about password strength setting requirements, see GetPasswordPolicy.
  • password_reset_required - (Optional) Whether the user must reset the password at the next logon. Value:
    • true
    • false (default)
  • user_name - (Required, ForceNew) The user name.

Attributes Reference

The following attributes are exported:

  • id - The ID of the resource supplied above.
  • create_time - Creation time.

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • create - (Defaults to 5 mins) Used when create the Login Profile.
  • delete - (Defaults to 5 mins) Used when delete the Login Profile.
  • update - (Defaults to 5 mins) Used when update the Login Profile.

Import

RAM Login Profile can be imported using the id, e.g.

$ terraform import alicloud_ram_login_profile.example <id>