turbot/aws_compliance

Query: ec2_instance_not_use_multiple_enis

Usage

powerpipe query aws_compliance.query.ec2_instance_not_use_multiple_enis

Steampipe Tables

SQL

select
arn as resource,
case
when jsonb_array_length(network_interfaces) = 1 then 'ok'
else 'alarm'
end status,
title || ' has ' || jsonb_array_length(network_interfaces) || ' ENI(s) attached.'
as reason
, region, account_id
from
aws_ec2_instance;

Controls

The query is being used by the following controls: