turbot/steampipe-mod-aws-compliance

Control: Active MQ brokers should stream audit logs to CloudWatch

Description

This control checks whether an Amazon MQ ActiveMQ broker streams audit logs to Amazon CloudWatch Logs. The control fails if the broker doesn't stream audit logs to CloudWatch Logs.

Usage

Run the control in your terminal:

powerpipe control run aws_compliance.control.mq_broker_audit_log_enabled

Snapshot and share results via Turbot Pipes:

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

SQL

This control uses a named query:

select
arn as resource,
case
when (logs -> 'Audit')::bool then 'ok'
else 'alarm'
end as status,
case
when (logs -> 'Audit')::bool then title || ' audit log enabled.'
else title || ' audit log disabled.'
end as reason
, region, account_id
from
aws_mq_broker;

Tags