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_keySnapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.appsync_graphql_api_authentication_without_api_key --shareSQL
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_idfrom  aws_appsync_graphql_api;