aws_iam_account_password_policy

Manages Password Policy for the AWS Account. See more about Account Password Policy in the official AWS docs.

Example Usage

resource "aws_iam_account_password_policy" "strict" {
  minimum_password_length        = 8
  require_lowercase_characters   = true
  require_numbers                = true
  require_uppercase_characters   = true
  require_symbols                = true
  allow_users_to_change_password = true
}

Argument Reference

The following arguments are supported:

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • expire_passwords - Indicates whether passwords in the account expire. Returns true if max_password_age contains a value greater than 0. Returns false if it is 0 or not present.

Import

IAM Account Password Policy can be imported using the word iam-account-password-policy, e.g.

$ terraform import aws_iam_account_password_policy.strict iam-account-password-policy

© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/aws/r/iam_account_password_policy.html