Use this module
module "iam_account" {
source = "registry.compliance.tf/terraform-aws-modules/iam/aws"
account_alias = "awesome-company"
max_password_age = 90
minimum_password_length = 24
require_uppercase_characters = true
require_lowercase_characters = true
require_numbers = true
require_symbols = true
password_reuse_prevention = 3
allow_users_to_change_password = true
}The example from the module's README, with this page's source.
Key inputs
No input is required: the module runs on its defaults.