Control: EC2 stopped instances should be removed in 30 days
Description
Enable this rule to help with the baseline configuration of AWS Elastic Compute Cloud (AWS EC2) instances by checking whether AWS EC2 instances have been stopped for more than the allowed number of days, according to your organization's standards.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.ec2_stopped_instance_30_days
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.ec2_stopped_instance_30_days --share
SQL
This control uses a named query:
ec2_stopped_instance_30_days