IAM Roles¶
Provider: AWS
Service ID: iam_roles
Rendering: Table with expandable rows containing policy documents
Quick Example¶
<!-- 1. the key, once per page -->
<script>window.lpEmbed = { accessKey: 'lp_ak_YOUR_ACCESS_KEY' };</script>
<!-- 2. the loader, once per page -->
<script src="https://lightpane.io/embed/lp.js"></script>
<!-- 3. one container per pane -->
<div data-lp-service="iam_roles"
data-lp-account="YOUR_ACCOUNT_HANDLE"
data-lp-region="eu-west-2"
data-lp-attributes="name,path,description,principal_service,principal_account,max_session"></div>
Default Attributes¶
When no attributes array is specified, these columns are displayed:
attributes: ['name', 'path', 'description', 'principal_service', 'principal_account', 'max_session', 'created', 'assume_policy', 'tags']
All Attributes¶
| Attribute | Display Name | Format | Description |
|---|---|---|---|
tags |
Tags | tags_table |
All tags/labels as a key-value table |
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 | duration_seconds |
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 relationship | policy_link |
Link to view the assume role policy |
= included in default view
Sort Order¶
Results are sorted by: name