Skip to content

Commit 79907db

Browse files
fix(aws): Unused EIP policy - check associations not instance_ids (#5378)
#### Summary The unused EIP policy check is generating a lot of false positives because it only checks for association to an EC2 instance. this misses various other valid associations (e.g. NAT Gateways, AWS Transfer servers). <!--
1 parent af7d3fd commit 79907db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/source/aws/policies/queries/ec2/eips_unused.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ select :'execution_time' as execution_time,
77
allocation_id as resource_id,
88
'fail' as status
99
from aws_ec2_eips
10-
where instance_id is null
10+
where association_id is null

0 commit comments

Comments
 (0)