IAM Roles¶
Provider: AWS
Service ID: iam_roles
Rendering: Table with expandable rows containing policy documents
Quick Example¶
<script>
var serviceDiscoveryRequests = serviceDiscoveryRequests || [];
serviceDiscoveryRequests.push({
service: 'iam_roles',
provider: 'aws',
region: 'eu-west-2',
source: 'live',
attributes: ['name', 'path', 'description', 'principal_service', 'principal_account', 'max_session']
});
</script>
<div data-sd-service="iam_roles" data-sd-source="live"></div>
Default Attributes¶
When no attributes array is specified, these columns are displayed:
attributes: ['name', 'path', 'description', 'principal_service', 'principal_account', 'max_session', 'created']
All Attributes¶
| Attribute | Display Name | Format | Description |
|---|---|---|---|
name |
Role Name | text |
Resource display name (from tags or identifier) |
role_id |
Role ID | text |
From API field: RoleId |
path |
Path | text |
From API field: Path. Default: / |
arn |
ARN | text |
From API field: Arn |
description |
Description | text |
From API field: Description |
created |
Created | datetime |
From API field: CreateDate |
max_session |
Max Session (s) | text |
From API field: MaxSessionDuration. Default: 3600 |
principal_service |
Principal (Service) | text |
From API field: AssumeRolePolicyDocument.Statement[0].Principal.Service |
principal_account |
Principal (Account) | arn_name |
From API field: AssumeRolePolicyDocument.Statement[0].Principal.AWS |
attached_policies |
Managed Policies | array_length |
From API field: AttachedManagedPolicies. Default: 0 |
assume_policy |
Trust Policy | policy_link |
Link to view the assume role policy |
= included in default view
Sort Order¶
Results are sorted by: name