AWS041 - IAM Password policy should have requirement for at least one number in the password.

Explanation

IAM account password policies should ensure that passwords content including at least one number.

Insecure Example

The following example will fail the AWS041 check.

resource "aws_iam_account_password_policy" "bad_example" {
	# ...
	# require_numbers not set
	# ...
}

Secure Example

The following example will pass the AWS041 check.

resource "aws_iam_account_password_policy" "good_example" {
	# ...
	require_numbers = true
	# ...
}