AppSync GraphQL APIs should not use API keys for authentication

This page is not yet available in Spanish. We are working on its translation.
If you have any questions or feedback about our current translation project, feel free to reach out to us!

Description

Use approved authorization mechanisms for your AWS AppSync GraphQL APIs

An API key is a static value embedded in your application, generated by the AWS AppSync service upon creating an unauthenticated GraphQL endpoint. If this API key is exposed, your endpoint can be accessed without authorization. For applications or websites that are not intended for public access, it is advisable to use alternative authentication methods instead of an API key.

Remediation

Follow the Configuring authorization and authentication to secure your GraphQL APIs documentation to learn how to configure GraphQL API authorization types.