More Info:

Checks if an AWS AppSync API has logging enabled. The rule is NON_COMPLIANT if logging is not enabled, or ‘fieldLogLevel’ is neither ERROR nor ALL.

Risk Level

Medium

Address

Monitoring

Compliance Standards

GDPR,HIPAA,ISO27001,SEBI

Triage and Remediation

Remediation

To remediate the misconfiguration of AppSync API not having logging enabled in AWS using the AWS Management Console, follow these step-by-step instructions:

  1. Sign in to the AWS Management Console: Go to the AWS Management Console (https://aws.amazon.com/console/) and sign in using your AWS account credentials.

  2. Navigate to AWS AppSync: In the AWS Management Console, type “AppSync” in the search bar at the top and select “AWS AppSync” from the dropdown list.

  3. Select the AppSync API: In the AWS AppSync console, select the API that you want to enable logging for from the list of APIs displayed.

  4. Enable Logging: In the API details page, click on the “Settings” tab on the left-hand side menu.

  5. Configure Logging: Scroll down to the “Log Config” section and click on the “Edit” button.

  6. Enable Access Logging: In the “Access Logging” section, toggle the switch to enable access logging for the AppSync API.

  7. Set Log Level (Optional): Optionally, you can set the log level based on your requirements (e.g., INFO, ERROR, DEBUG).

  8. Choose Log Group: Select an existing CloudWatch log group or create a new one where the logs will be stored.

  9. Save Changes: Click on the “Save” button to save the changes and enable logging for the AppSync API.

  10. Verify Logging: To verify that logging is enabled, you can perform some API operations and check the CloudWatch log group for the logs generated by the AppSync API.

By following these steps, you can remediate the misconfiguration of AppSync API not having logging enabled in AWS using the AWS Management Console.