turbot/aws_insights

Query: dynamodb_table_key_schema

Usage

powerpipe query aws_insights.query.dynamodb_table_key_schema

Steampipe Tables

SQL

select
schema ->> 'AttributeName' as "Attribute Name",
schema ->> 'KeyType' as "Key Type"
from
aws_dynamodb_table,
jsonb_array_elements(key_schema) as schema
where
arn = $1
and region = split_part($1, ':', 4)
and account_id = split_part($1, ':', 5);

Dashboards

The query is used in the dashboards: