More Info:

AWS CloudWatch logs should be enabled for all your APIs created with Amazon API Gateway service in order to track and analyze execution behavior at the API stage level.

Risk Level

Low

Address

Operational Maturity, Security

Compliance Standards

HIPAA, SOC2, HITRUST, NISTCSF, PCIDSS

Triage and Remediation

Remediation

To remediate the misconfiguration “Cloudwatch Logs Must Be Enabled For All APIs” for AWS using AWS console, follow the below steps:

  1. Login to the AWS Management Console.
  2. Go to the Amazon API Gateway service.
  3. Select the API you want to enable Cloudwatch logs for.
  4. Click on the “Stages” link in the left-hand menu.
  5. Select the stage you want to enable Cloudwatch logs for.
  6. Click on the “Logs/Tracing” tab.
  7. Under “CloudWatch Settings”, click the pencil icon to edit the settings.
  8. Select “Enable CloudWatch Logs” and choose a log format.
  9. Select an existing IAM role or create a new one for CloudWatch Logs to assume.
  10. Click “Save Changes”.

After following these steps, Cloudwatch logs will be enabled for the selected API and stage.

Additional Reading: