Skip to content

OpenTofu module for managing IAM users, roles, and policies in AWS. It simplifies identity and access management by automating the creation of users, role assignments, and policy attachments, ensuring secure and scalable access control.

License

Notifications You must be signed in to change notification settings

evners/tofu-aws-iam

Repository files navigation

Requirements

Name Version
terraform >= 1.10.6
aws ~> 6.21

Providers

Name Version
aws 6.21.0

Modules

No modules.

Resources

Name Type
aws_iam_access_key.this resource
aws_iam_group.this resource
aws_iam_group_membership.this resource
aws_iam_group_policy.this resource
aws_iam_group_policy_attachment.this resource
aws_iam_user.this resource
aws_iam_user_login_profile.this resource
aws_iam_user_policy_attachment.change_password resource
aws_secretsmanager_secret.iam_user_access_credentials resource
aws_secretsmanager_secret.iam_user_passwords resource
aws_secretsmanager_secret_version.iam_user_access_credentials resource
aws_secretsmanager_secret_version.iam_user_passwords resource

Inputs

Name Description Type Default Required
extra_tags A map of extra tags to add to all resources created by the module. map(string) {} no
groups List of IAM groups to create, including managed and inline policies
list(object({
name = string
path = optional(string, "/")
managed_policies = optional(list(string), [])
inline_policies = optional(list(object({
name = string
policy = string
})), [])
}))
[] no
users List of IAM users to create.
list(object({
name = string
path = optional(string, "/")
force_destroy = optional(bool, false)
console_access = optional(bool, false)
password_length = optional(number, 16)
password_reset_required = optional(bool, true)
access_key = optional(bool, false)
groups = optional(list(string), [])
}))
[] no

Outputs

Name Description
group_arns Map of IAM group names to their corresponding ARNs.
user_arns Map of IAM user names to their corresponding ARNs.

About

OpenTofu module for managing IAM users, roles, and policies in AWS. It simplifies identity and access management by automating the creation of users, role assignments, and policy attachments, ensuring secure and scalable access control.

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages