turbot/aws_compliance

Query: apigateway_stage_cache_encryption_at_rest_enabled

Usage

powerpipe query aws_compliance.query.apigateway_stage_cache_encryption_at_rest_enabled

Steampipe Tables

SQL

select
'arn:' || partition || ':apigateway:' || region || '::/apis/' || rest_api_id || '/stages/' || name as resource,
case
when method_settings -> '*/*' ->> 'CachingEnabled' = 'true'
and method_settings -> '*/*' ->> 'CacheDataEncrypted' = 'true' then 'ok'
else 'alarm'
end as status,
case
when method_settings -> '*/*' ->> 'CachingEnabled' = 'true'
and method_settings -> '*/*' ->> 'CacheDataEncrypted' = 'true' then title || ' API cache and encryption enabled.'
else title || ' API cache and encryption not enabled.'
end as reason,
region,
account_id
from
aws_api_gateway_stage;

Controls

The query is being used by the following controls: