Requirements

No requirements.

Providers

Name Version
aws n/a

Modules

No modules.

Resources

Name Type
aws_iam_policy.policy resource
aws_iam_role.role resource
aws_iam_role_policy_attachment.role-policy-attachment 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
policy policy associated with new role string "" no
role_name Name of the IAM Role. string n/a yes

Outputs

Name Description
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.
policy-arn ARN of Policy Used.