Information
Password policies are used, in part, to enforce password complexity requirements. IAM password policies can ensure that passwords meet a minimum length. It is recommended that the password policy require a minimum password length of 14 characters.
Setting a password policy with sufficient length requirements increases account resilience against brute force login attempts.
Solution
Perform the following to set the password policy as prescribed:
From Console:
- Login to AWS Console (with appropriate permissions to View Identity Access Management Account Settings)
- Go to IAM Service
- Select Account Settings on the Left Pane
- Set "Minimum password length" to 14 or greater
- Select "Apply password policy"
From Command Line:
- Run the following command:
aws iam update-account-password-policy --minimum-password-length 14
Note: Note: All commands starting with "aws iam update-account-password-policy" can be combined into a single command.
Impact:
Enforcing a minimum password length of 14 characters enhances security by making passwords more resistant to brute force attacks. However, it may require users to create longer passwords, which could impact user convenience.