terraform.aws-baseline-infra/modules/security_identity_compliance/iam-role
2024-09-27 10:45:20 +08:00
..
LICENSE NEW: iam-role terraform module 2024-09-26 09:10:20 +08:00
main.tf UPD: update iam-role module to support assume role policy 2024-09-27 10:45:20 +08:00
outputs.tf NEW: iam-role terraform module 2024-09-26 09:10:20 +08:00
provider.tf UPD: update iam-role module to support assume role policy 2024-09-27 10:45:20 +08:00
README.md UPD: update iam-role module to support assume role policy 2024-09-27 10:45:20 +08:00
variables.tf UPD: update iam-role module to support assume role policy 2024-09-27 10:45:20 +08:00

Inline policy for IAM role is not supported by this module. Use managed policies instead.

Requirements

Name Version
terraform >= 1.3.0
aws >= 5.4.0

Providers

Name Version
aws >= 5.4.0

Modules

No modules.

Resources

Name Type
aws_iam_instance_profile.this resource
aws_iam_role.this resource

Inputs

Name Description Type Default Required
assume-role-policy The actual assume role policy if trusted-entity is not provided. string null no
create-instance-profile Determines whether instance profile will be created bool false no
description Description of IAM role string n/a yes
managed-policy-arns List of managed policies to be attached to role list(string) null no
path Path of IAM role. Defaults to /Customer/ string "/Customer/" no
role-name Name of IAM role string n/a yes
trusted-entity AWS service allowed to assume this role. Either this or assume-role-policy must be provided. string n/a yes

Outputs

Name Description
instance-profile-arn ARN of IAM instance profile
name Name of IAM role
profile-name Name of IAM instance profile
role-arn IAM role ARN

Authorship

This module was developed by xpk.