Resource: 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

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import IAM Account Password Policy using the word iam-account-password-policy. For example:

import {
  to = aws_iam_account_password_policy.strict
  id = "iam-account-password-policy"
}

Using terraform import, import IAM Account Password Policy using the word iam-account-password-policy. For example:

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