This rule ensures that API Gateway stage cache encryption at rest is enabled for enhanced security measures.
Rule | API Gateway stage cache encryption at rest should be enabled |
Framework | NIST 800-171 Revision 2 |
Severity | ✔ Medium |
API Gateway Stage Cache Encryption at Rest
Description:
The API Gateway stage cache is a feature that allows caching responses from your API's resources and methods. Encryption at rest is a security measure that ensures the cached data is stored securely and protected from unauthorized access. Enabling encryption at rest for the API Gateway stage cache is particularly important when compliance with NIST 800-171 Revision 2 is required.
Troubleshooting Steps:
If encryption at rest is not enabled for the API Gateway stage cache, the cached data may be at risk of unauthorized access. To troubleshoot this, follow the steps below:
Necessary Codes:
If encryption at rest is not enabled by default, you may need to modify the API Gateway stage cache configuration by adding the necessary code. Below is an example of the code snippet that enables encryption at rest for the stage cache:
Stage:
Type: AWS::ApiGatewayV2::Stage
Properties:
...
CachingEnabled: true
CacheTtlInSeconds: 300
...
DefaultCacheBehavior:
...
LambdaFunctionAssociations:
- FunctionArn: arn:aws:lambda:us-west-2:123456789012:function:MyFunction
...
...
Tags:
...
DependsOn: MyFunction
Step by Step Guide for Remediation:
Follow the steps below to enable encryption at rest for the API Gateway stage cache:
Note: The exact steps may vary depending on the AWS Management Console's interface updates.