A Terraform module that creates an IAM role.
| Name |
Version |
| aws |
>= 4.0.0 |
No modules.
| Name |
Description |
Type |
Default |
Required |
| assume_policy |
The assume policy to attach to the role. |
string |
null |
no |
| create_policy |
Overrule whether the IAM role policy has to be created. |
bool |
null |
no |
| description |
The description of the role. |
string |
null |
no |
| force_detach_policies |
Force detaching any policies the role has before destroying it. |
bool |
false |
no |
| max_session_duration |
The maximum session duration (in seconds) for the role. |
number |
3600 |
no |
| name |
Name of the role. Conflicts with name_prefix. |
string |
null |
no |
| name_prefix |
Name prefix of the role. Conflicts with name. |
string |
null |
no |
| path |
Path to the role. |
string |
"/" |
no |
| permissions_boundary |
The permissions boundary to set on the role. |
string |
null |
no |
| policy_arns |
A set of policy ARNs to attach to the role. |
set(string) |
[] |
no |
| postfix |
Postfix the role and policy name or name_prefix with Role and Policy. |
bool |
true |
no |
| principal_identifiers |
List of identifiers for principals. |
list(string) |
[] |
no |
| principal_type |
The type of assume role principal. |
string |
"" |
no |
| role_policy |
The JSON encoded IAM policy to attach to the role. |
string |
null |
no |
| tags |
A mapping of tags to assign to the role. |
map(string) |
null |
no |
| Name |
Description |
| arn |
ARN of the role |
| id |
ID of the role |
| name |
The name of the role |
| unique_id |
Unique ID of the role |