turbot/steampipe-mod-alicloud-insights

Dashboard: AliCloud ECS Snapshot Detail

This dashboard answers the following questions for each snapshot:

  • What is the source of this snapshot?
  • What relationships does the snapshot have with other resources?
  • How is the snapshot encrypted?
  • What tags are applied?
This dashboard contains 5 cards, 1 graph, 1 input and 4 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 ECS Snapshot Detail dashboard.

You could also snapshot and share results via Turbot Pipes:

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

Queries

This dashboard uses the the following queries:
with data as (
select
(extract(epoch from (select (now() - creation_time)))/86400)::int as age
from
alicloud_ecs_snapshot
where
arn = $1
and account_id = split_part($1, ':', 5)
and region = split_part($1, ':', 4)
)
select
'Age (in Days)' as label,
age as value,
case when age<35 then 'ok' else 'alert' end as type
from
data;

Tags