turbot/steampipe-mod-aws-compliance

Control: IAM groups should have at least one user

Description

AWS Identity and Access Management (IAM) can help you incorporate the principles of least privilege and separation of duties with access permissions and authorizations, by ensuring that IAM groups have at least one IAM user.

Usage

Run the control in your terminal:

powerpipe control run aws_compliance.control.iam_group_not_empty

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run aws_compliance.control.iam_group_not_empty --share

SQL

This control uses a named query:

select
arn as resource,
case
when users is null then 'alarm'
else 'ok'
end as status,
case
when users is null then title || ' not associated with any IAM user.'
else title || ' associated with IAM user.'
end as reason
, account_id
from
aws_iam_group;

Tags