CloudWatch log group is not encrypted with customer managed key Affecting CloudWatch service in AWS


Severity

0.0
medium
0
10
Severity Framework
Snyk CCSS
Rule category
Keys and Secrets/ Encryption at Rest

Is your environment affected by this misconfiguration?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
Frameworks
AWS-Well-ArchitectedCSA-CCMGDPRISO-27001NIST-800-53SOC-2
  • Snyk IDSNYK-CC-00008
  • creditSnyk Research Team

Description

CloudWatch log groups are encrypted by default. However, utilizing customer managed KMS keys gives you more control over key rotation and provides auditing visibility into key usage.

How to fix?

Configure the aws_cloudwatch_log_group kms_key_id field with a KMS key ARN specified for encrypting log data.

Example configuration:

resource "aws_cloudwatch_log_group" "example" {
  kms_key_id = "${aws_kms_key.example.arn}"
  # other required fields here
}