turbot/aws_compliance

Query: neptune_db_cluster_snapshot_prohibit_public_access

Usage

powerpipe query aws_compliance.query.neptune_db_cluster_snapshot_prohibit_public_access

SQL

select
db_cluster_snapshot_arn as resource,
case
when cluster_snapshot -> 'AttributeValues' = '["all"]' then 'alarm'
else 'ok'
end status,
case
when cluster_snapshot -> 'AttributeValues' = '["all"]' then title || ' publicly accessible.'
else title || ' not publicly accessible.'
end reason
, region, account_id
from
aws_neptune_db_cluster_snapshot,
jsonb_array_elements(db_cluster_snapshot_attributes) as cluster_snapshot;

Controls

The query is being used by the following controls: