.. | ||
LICENSE | ||
main.tf | ||
outputs.tf | ||
README.md | ||
variables.tf |
Requirements
No requirements.
Providers
Name | Version |
---|---|
aws | n/a |
Modules
No modules.
Example
module "role1" {
source = ".../SecurityIdentityCompliance/iam-role"
role-name = "${local.resource_prefix}-${var.application}-role1"
description = "IAM role for ${var.application}"
trusted-entity = "ec2.amazonaws.com"
create-instance-profile = true
managed-policy-arns = [
"arn:aws:iam::aws:policy/ReadOnlyAccess"
]
}
Resources
Name | Type |
---|---|
aws_iam_instance_profile.this | resource |
aws_iam_role.this | 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 |
inline-policy | Inline policy content | string |
null |
no |
inline-policy-name | Inline policy name | string |
null |
no |
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 | 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.