IAM password policies should require at least one number


IAM password policies are used to enforce password complexity requirements. Setting a password complexity policy that requires at least one number increases account resiliency against brute force login attempts.

Remediation Steps

AWS Console

  • Navigate to IAM.

  • In the left navigation, select Account settings.

  • Check the Require at least one number checkbox.

  • Click the Apply password policy button.


  • Set password policy to require at least one number.

  • This operation does not support partial updates. No parameters are required, but if you do not specify a parameter, that parameter’s value reverts to its default value.

    • aws iam update-account-password-policy <other password options> --require-numbers


Example Configuration

resource "aws_iam_account_password_policy" "example" {
  require_numbers = true
  # other required fields here