turbot/steampipe-mod-aws-insights

Dashboard: AWS IAM User Dashboard

This dashboard answers the following questions:

  • How many users are in each account?
  • How many users have MFA disabled?
  • How many users do not have boundary policies set?
  • How many users do not have attached policies?
  • How many users do not have inline policies?
This dashboard contains 5 cards.

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

You could also snapshot and share results via Turbot Pipes:

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

Queries

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

Tags