turbot/steampipe-mod-aws-insights

Dashboard: AWS EKS Cluster Detail

This dashboard answers the following questions for each cluster:

  • What relationships does the eks cluster have with other resources?
  • How is the cluster configured?
  • What tags are applied?
  • How is control plane logging configured?
This dashboard contains 5 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 EKS Cluster Detail dashboard.

You could also snapshot and share results via Turbot Pipes:

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

Queries

This dashboard uses the the following queries:
select
'Control Plane Audit Logging' as label,
case when l ->> 'Enabled'::text = 'true' then 'Enabled' else 'Disabled' end as value,
case when l ->> 'Enabled'::text = 'true' then 'ok' else 'alert' end as type
from
aws_eks_cluster,
jsonb_array_elements(logging -> 'ClusterLogging') as l,
jsonb_array_elements_text(l -> 'Types') as t
where
t = 'audit'
and arn = $1
and account_id = split_part($1, ':', 5)
and region = split_part($1, ':', 4);

Tags