More Info:

Ensure that response caching is enabled for your Amazon API Gateway REST APIs in order to enhance API responsiveness and decrease latency.

Risk Level

Medium

Address

Security

Compliance Standards

CBP

Triage and Remediation

Remediation

To remediate the misconfiguration of enabling API Cache in AWS, you can follow the below steps:

  1. Login to your AWS Management Console.
  2. Navigate to the API Gateway service.
  3. Select the API that you want to enable caching for.
  4. Click on the “Stages” option in the left-hand menu.
  5. Select the stage for which you want to enable caching.
  6. Click on the “Settings” tab.
  7. Scroll down to the “Cache Settings” section.
  8. Click on the “Enable API Cache” checkbox.
  9. Set the “Cache Capacity” and “TTL” values as per your requirement.
  10. Click on the “Save Changes” button.

Once you have completed these steps, caching will be enabled for your API in AWS. You can test it by making some API requests and checking if the response time has improved.

Additional Reading: