1
0
Files
terraform.examples/modules/security_identity_compliance/iam-role-v2
2026-02-13 15:44:24 +08:00
..
2026-02-13 15:44:24 +08:00
2026-02-13 15:44:24 +08:00
2026-02-13 15:44:24 +08:00
2026-02-13 15:44:24 +08:00
2026-02-13 15:44:24 +08:00

Requirements

Name Version
terraform >= 1.3.0
aws ~> 5.0

Providers

Name Version
aws ~> 5.0

Modules

No modules.

Resources

Name Type
aws_iam_instance_profile.ip resource
aws_iam_policy.p resource
aws_iam_role.r resource
aws_iam_role_policy_attachment.pa resource

Inputs

Name Description Type Default Required
create-instance-profile Determines whether instance profile will be created bool false no
description Description of IAM role string n/a yes
max-session-duration Max session duration in seconds number 3600 no
path Path of IAM role. Defaults to /Customer/ string "/Customer/" no
policies Map of policies to be created and attached
map(
object(
{
description = string
policy = string
}
)
)
{} no
role-name Name of IAM role string n/a yes
tags Tags additional to default tags map(string) {} no
trusted-entity AWS service allowed to assume this role or a full assume role policy 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.