turbot/steampipe-mod-aws-compliance

Control: AWS AppSync GraphQL APIs should not be authenticated with API keys

Description

This control checks whether your application uses an API key to interact with an AWS AppSync GraphQL API. The control fails if an AWS AppSync GraphQL API is authenticated with an API key.

Usage

Run the control in your terminal:

powerpipe control run aws_compliance.control.appsync_graphql_api_authentication_without_api_key

Snapshot and share results via Turbot Pipes:

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

SQL

This control uses a named query:

select
arn as resource,
case
when authentication_type = 'API_KEY' then 'alarm'
else 'ok'
end as status,
name || ' uses ' || authentication_type || ' authentication method.' as reason
, region, account_id
from
aws_appsync_graphql_api;

Tags