Requirements

No requirements.

Providers

Name Version
aws n/a

Modules

No modules.

Resources

Name Type
aws_iam_group.group resource
aws_iam_policy.policy resource
aws_iam_role.role resource
aws_iam_role_policy_attachment.group-policy-attachment resource
aws_iam_role_policy_attachment.role-policy-attachment resource
aws_iam_role_policy_attachment.user-policy-attachment resource
aws_iam_user.user resource
aws_caller_identity.current data source

Inputs

Name Description Type Default Required
assume_role_policy IAM assume role policy to use for the IAM Role string n/a yes
create_policy Toggle Creation of Policy bool false no
existing_policy_arn arn of existing policy string "" no
iam_group Toggle for creating an iam group. bool false no
iam_role Toggle for creating a iam role. bool false no
iam_user Toggle for creating an iam user bool false no
policy policy associated with new role string "" no
role_name Name of the IAM Role. string n/a yes
tags Tags for created resources map(any) n/a yes

Outputs

Name Description
created-iam-group-arn Arn of IAM group created.
created-iam-group-id ID of IAM group created.
created-iam-group-name Name of IAM group created.
created-iam-role-arn Arn of IAM role created.
created-iam-role-id ID of IAM role created.
created-iam-role-name Name of IAM role created.
created-iam-user-arn Arn of IAM user created.
created-iam-user-id ID of IAM user created.
created-iam-user-name Name of IAM user created.
policy-arn ARN of Policy Used.