More Info:

Detailed CloudWatch metrics should be enabled for all APIs created with AWS API Gateway service in order to monitor API stages caching, latency and detected errors at a more granular level and set alarms accordingly.

Risk Level

Low

Address

Operational Maturity

Compliance Standards

HIPAA, SOC2, HITRUST, NISTCSF, PCIDSS

Triage and Remediation

Remediation

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

  1. Open the AWS Management Console and go to the Amazon API Gateway service.

  2. Select the API for which you want to enable CloudWatch metrics.

  3. Click on the “Stages” option from the left-hand side menu.

  4. Select the stage for which you want to enable CloudWatch metrics.

  5. Click on the “Logs/Tracing” tab.

  6. Under the “CloudWatch Settings” section, check the box next to “Enable CloudWatch Logs” and “Enable CloudWatch Metrics”.

  7. Select the appropriate log format for your API.

  8. Click on the “Save Changes” button.

  9. Repeat the above steps for all the APIs and stages that you want to enable CloudWatch metrics for.

By following these steps, you can remediate the misconfiguration “Cloudwatch Metrics Must Be Enabled For All APIs” for AWS using AWS console.

Additional Reading: