turbot/steampipe-mod-aws-compliance

Control: API Gateway stage should uses SSL certificate

Description

Ensure that a REST API stage uses a Secure Sockets Layer (SSL) certificate. This rule is compliant if the REST API stage does not have an associated SSL certificate.

Usage

Run the control in your terminal:

powerpipe control run aws_compliance.control.apigateway_rest_api_stage_use_ssl_certificate

Snapshot and share results via Turbot Pipes:

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

SQL

This control uses a named query:

select
arn as resource,
case
when client_certificate_id is null then 'alarm'
else 'ok'
end as status,
case
when client_certificate_id is null then title || ' does not use SSL certificate.'
else title || ' uses SSL certificate.'
end as reason
, region, account_id
from
aws_api_gateway_stage;

Tags