turbot/steampipe-mod-aws-compliance

Control: AWS AppSync API caches should be encrypted in transit

Description

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

Usage

Run the control in your terminal:

powerpipe control run aws_compliance.control.appsync_graphql_api_cache_encryption_in_transit_enabled

Snapshot and share results via Turbot Pipes:

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

SQL

This control uses a named query:

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

Tags