turbot/steampipe-mod-aws-compliance

Control: AWS AppSync API caches should be encrypted at rest

Description

This control checks whether an AWS AppSync API cache is encrypted at rest. The control fails if the API cache isn't encrypted at rest.

Usage

Run the control in your terminal:

powerpipe control run aws_compliance.control.appsync_graphql_api_cache_encryption_at_rest_enabled

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run aws_compliance.control.appsync_graphql_api_cache_encryption_at_rest_enabled --share

SQL

This control uses a named query:

select
arn as resource,
case
when (api_cache ->> 'AtRestEncryptionEnabled')::bool then 'ok'
else 'alarm'
end as status,
case
when (api_cache ->> 'AtRestEncryptionEnabled')::bool then title || ' encryption at rest enabled.'
else name || ' encryption at rest disabled.'
end as reason
, region, account_id
from
aws_appsync_graphql_api;

Tags