turbot/aws_compliance

Query: ec2_network_interface_unused

Usage

powerpipe query aws_compliance.query.ec2_network_interface_unused

SQL

select
network_interface_id as resource,
case
when status = 'available' and attached_instance_id is null then 'alarm'
else 'ok'
end as status,
case
when status = 'available' and attached_instance_id is null then title || ' not in use.'
else title || ' in use.'
end as reason
, region, account_id
from
aws_ec2_network_interface;

Controls

The query is being used by the following controls: