turbot/aws_compliance

Query: apigateway_rest_api_endpoint_restrict_public_access

Usage

powerpipe query aws_compliance.query.apigateway_rest_api_endpoint_restrict_public_access

Steampipe Tables

SQL

select
'arn:' || partition || ':apigateway:' || region || '::/apis/' || api_id as resource,
case
when endpoint_configuration_types ? 'PRIVATE' then 'ok'
else 'alarm'
end as status,
case
when endpoint_configuration_types ? 'PRIVATE' then name || ' not publicly accessible.'
else name || ' publicly accessible.'
end as reason
, region, account_id
from
aws_api_gateway_rest_api;

Controls

The query is being used by the following controls: