Skip to content

Terraform module to provide a role with custom principals and custom policies.

License

Notifications You must be signed in to change notification settings

Flaconi/terraform-aws-iam-role

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS IAM System Role

Lint Status Docs Status Tag license

Terraform module that provides an IAM User and IAM Role with given policies.

Examples

Check the examples directory.

Requirements

Name Version
terraform >= 0.12.26
aws >= 3

Providers

Name Version
aws >= 3

Modules

No modules.

Resources

Name Type
aws_iam_role.this resource
aws_iam_role_policy.this resource
aws_iam_role_policy_attachment.this resource
aws_iam_policy_document.this data source
aws_iam_policy_document.trust_policy data source

Inputs

Name Description Type Default Required
name Name of the role any n/a yes
attach_policy_arns Policy arns attacherd to the assuming role list(string) [] no
enabled Set to false to prevent the module from creating any resources bool true no
iam_role_principals_arns Other IAM Principals which can assume the role list(string) [] no
inline_policies Policies applied to the assuming role
list(object({
name = string
statements = list(object({
actions = list(string)
resources = list(string)
}))
}))
[] no
service_principals IAM service Principals which can assume the role list(string)
[
"ec2.amazonaws.com"
]
no
tags Tags applied to the resources map(string) {} no

Outputs

Name Description
this_aws_iam_role_arn The IAM Role ARN
this_aws_iam_role_id The IAM Role ID

License

MIT

Copyright (c) 2021 Flaconi GmbH

About

Terraform module to provide a role with custom principals and custom policies.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •