Control: EC2 instance detailed monitoring should be enabled
Description
Enable this rule to help improve AWS Elastic Compute Cloud (AWS EC2) instance monitoring on the AWS EC2 console, which displays monitoring graphs with a 1-minute period for the instance.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.ec2_instance_detailed_monitoring_enabled
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.ec2_instance_detailed_monitoring_enabled --share
SQL
This control uses a named query:
select arn as resource, case when monitoring_state = 'enabled' then 'ok' else 'alarm' end as status, case when monitoring_state = 'enabled' then instance_id || ' detailed monitoring enabled.' else instance_id || ' detailed monitoring disabled.' end as reason , region, account_idfrom aws_ec2_instance;