For the complete documentation index, see llms.txt. This page is also available as Markdown.
Cortex CloudApplication Security

AWS API Gateway caching is disabled misconfiguration detected in code

Rule Details

Cortex AppSec Rule ID

APPSEC_AWS_120

Category - Subcategory

Compute - Unsanctioned Resource Or Type

Provider

AWS

Severity

LOW

Framework

CloudFormation, Terraform

Impact

This checks that all methods in an Amazon API Gateway stage to ensure that they have caching enabled. As AWS puts it "With caching, you can reduce the number of calls made to your endpoint and also improve the latency of requests to your API" and so if you need to minimise those, this will help. See the AWS docs for more information: https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-caching.html

How to Fix

Resource: AWS::ApiGateway::Stage

  • Arguments: CacheClusterEnabled [source,go]


Resources: Prod: Type: AWS::ApiGateway::Stage Properties: ...

  • CacheClusterEnabled: True


Last updated

Was this helpful?