Pattern: Disabled at-rest encryption for AWS ElastiCache
Issue: -
Data stored within an ElastiCache replication node should be encrypted to ensure sensitive data is kept private.
Resolution: Enable at-rest encryption for replication group.
The following example will fail the aws-elasticache-enable-at-rest-encryption check.
resource "aws_elasticache_replication_group" "bad_example" {
replication_group_id = "foo"
replication_group_description = "my foo cluster"
at_rest_encryption_enabled = false
}
The following example will pass the aws-elasticache-enable-at-rest-encryption check.
resource "aws_elasticache_replication_group" "good_example" {
replication_group_id = "foo"
replication_group_description = "my foo cluster"
at_rest_encryption_enabled = true
}