turbot/steampipe-mod-aws-insights

Dashboard: AWS DynamoDB Table Detail

This dashboard answers the following questions for each table:

  • How is the table configured?
  • What relationships does the table have with other resources?
  • What tags are applied?
  • How is encryption configured?
  • What is the read and write capacity of the table?
  • What is the recovery status of the table?
This dashboard contains 6 cards, 1 graph, 1 input and 5 tables.

Usage

Install the mod:

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

Start the Powerpipe server:

steampipe service start
powerpipe server

Open http://localhost:9033 in your browser and select AWS DynamoDB Table Detail dashboard.

You could also snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe dashboard run aws_insights.dashboard.dynamodb_table_detail --share

Queries

This dashboard uses the the following queries:
with table_with_autoscaling as (
select
t.resource_id as resource_id,
count(t.resource_id) as count
from
aws_appautoscaling_target as t where service_namespace = 'dynamodb'
group by t.resource_id
)
select
case when t.resource_id is null or t.count < 2 then 'Disabled' else 'Enabled' end as value,
'Auto Scaling' as label,
case when t.resource_id is null or t.count < 2 then 'alert' else 'ok' end as type
from
aws_dynamodb_table as d
left join table_with_autoscaling as t on concat('table/', d.name) = t.resource_id
where
d.arn = $1
and d.region = split_part($1, ':', 4)
and d.account_id = split_part($1, ':', 5);

Tags