MEDIUM
Source
Trivy
ID
AVD-AWS-0110

SAM API must have data cache enabled

Method cache encryption ensures that any sensitive data in the cache is not vulnerable to compromise in the event of interception

Impact

Follow the appropriate remediation steps below to resolve the issue.

Enable cache encryption

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
Resources:
  GoodExample:
    Type: AWS::Serverless::Api
    Properties:
      Domain:
        SecurityPolicy: TLS_1_2
      MethodSettings:
        CacheDataEncrypted: true
      Name: Good SAM API example
      StageName: Prod
      TracingEnabled: false