Terraform module that provides an IAM User and IAM Role with given policies.
Check the examples directory.
Name | Version |
---|---|
terraform | >= 0.12.26 |
aws | >= 3 |
Name | Version |
---|---|
aws | >= 3 |
No modules.
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 |
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({ |
[] |
no |
service_principals | IAM service Principals which can assume the role | list(string) |
[ |
no |
tags | Tags applied to the resources | map(string) |
{} |
no |
Name | Description |
---|---|
this_aws_iam_role_arn | The IAM Role ARN |
this_aws_iam_role_id | The IAM Role ID |
Copyright (c) 2021 Flaconi GmbH