Terraform module to manage the Amazon Web Services resources (aws_iam_account_alias, aws_iam_account_password_policy).
Copy and paste into your Terraform configuration, insert the variables and run terraform init
:
module "aws_iam_account" {
source = "dhoppeIT/iam_account/aws"
create_account_alias = true
account_alias = "dhoppeit"
create_account_password_policy = true
max_password_age = 90
minimum_password_length = 32
password_reuse_prevention = 3
require_lowercase_characters = true
require_numbers = true
require_symbols = true
require_uppercase_characters = true
}
Name | Version |
---|---|
terraform | >= 1.0 |
aws | ~> 4.1 |
Name | Version |
---|---|
aws | 4.40.0 |
No modules.
Name | Type |
---|---|
aws_iam_account_alias.default | resource |
aws_iam_account_password_policy.default | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
account_alias | The account alias | string |
null |
no |
allow_users_to_change_password | Whether to allow users to change their own password | bool |
true |
no |
create_account_alias | Whether to create IAM account alias | bool |
false |
no |
create_account_password_policy | Whether to create IAM account password policy | bool |
false |
no |
hard_expiry | Whether users are prevented from setting a new password after their password has expired | bool |
null |
no |
max_password_age | The number of days that an user password is valid | number |
null |
no |
minimum_password_length | Minimum length to require for user passwords | number |
6 |
no |
password_reuse_prevention | The number of previous passwords that users are prevented from reusing | number |
null |
no |
require_lowercase_characters | Whether to require lowercase characters for user passwords | bool |
null |
no |
require_numbers | Whether to require numbers for user passwords | bool |
null |
no |
require_symbols | Whether to require symbols for user passwords | bool |
null |
no |
require_uppercase_characters | Whether to require uppercase characters for user passwords | bool |
null |
no |
No outputs.
Created and maintained by Dennis Hoppe.
Apache 2 licensed. See LICENSE for full details.