turbot/steampipe-mod-alicloud-insights

Dashboard: AliCloud RAM Role Detail

This dashboard answers the following questions for each role:

  • How is the role configured?
  • What relationships does the role have with other resources?
  • What policies are attached to the role?
This dashboard contains 3 cards, 1 graph, 1 hierarchy, 1 input and 2 tables.

Usage

Install the mod:

mkdir dashboards
cd dashboards
powerpipe mod init
powerpipe mod install github.com/turbot/steampipe-mod-alicloud-insights

Start the Powerpipe server:

steampipe service start
powerpipe server

Open http://localhost:9033 in your browser and select AliCloud RAM Role Detail dashboard.

You could also snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe dashboard run alicloud_insights.dashboard.ram_role_detail --share

Queries

This dashboard uses the the following queries:
select
policies ->> 'PolicyName' as "Name",
policies ->> 'PolicyType' as "Type",
policies ->> 'DefaultVersion' as "Default Version",
policies ->> 'AttachDate' as "Attachment Date"
from
alicloud_ram_role,
jsonb_array_elements(attached_policy) as policies
where
arn = $1
and account_id = split_part($1,':',4);

Tags