Skip to content

Files

iam-account

IAM account example

Configuration in this directory sets AWS account alias (also known as Console Account alias) and configures password policy.

Usage

To run this example you need to execute:

$ terraform init
$ terraform plan
$ terraform apply

Run terraform destroy when you don't need these resources.

Requirements

Name Version
terraform >= 1.0
aws >= 4.0

Providers

No providers.

Modules

Name Source Version
iam_account ../../modules/iam-account n/a

Resources

No resources.

Inputs

No inputs.

Outputs

Name Description
caller_identity_account_id The ID of the AWS account
iam_account_password_policy_expire_passwords Indicates whether passwords in the account expire. Returns true if max_password_age contains a value greater than 0. Returns false if it is 0 or not present.