turbot/steampipe-mod-aws-insights

Dashboard: AWS EKS Cluster Dashboard

This dashboard answers the following questions:

  • How many clusters are in each account and region?
  • How many unencrypted clusters are there?
  • How much do my clusters cost each month?
This dashboard contains 4 cards and 1 table.

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 Dashboard dashboard.

You could also snapshot and share results via Turbot Pipes:

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

Queries

This dashboard uses the the following queries:
with clusters as (
select
title,
created_at,
to_char(created_at,
'YYYY-MM') as creation_month
from
aws_eks_cluster
),
months as (
select
to_char(d,
'YYYY-MM') as month
from
generate_series(date_trunc('month',
(
select
min(created_at)
from clusters)),
date_trunc('month',
current_date),
interval '1 month') as d
),
clusters_by_month as (
select
creation_month,
count(*)
from
clusters
group by
creation_month
)
select
months.month,
clusters_by_month.count
from
months
left join clusters_by_month on months.month = clusters_by_month.creation_month
order by
months.month;

Tags