Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ebs_attached_volume_encryption_enabled should validate all EBS volume without where condition Closes #503 #504

Merged
merged 2 commits into from
Oct 17, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions query/ebs/ebs_attached_volume_encryption_enabled.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ select
-- Required Columns
arn as resource,
case
when state != 'in-use' then 'skip'
when encrypted then 'ok'
else 'alarm'
end as status,
case
when state != 'in-use' then volume_id || ' not attached.'
when encrypted then volume_id || ' encrypted.'
else volume_id || ' not encrypted.'
end as reason,
-- Additional Dimensions
region,
account_id
from
aws_ebs_volume
where
state = 'in-use';
aws_ebs_volume;