Pattern: Unencrypted ElastiCache replication group
Issue: -
You should ensure your ElastiCache data is encrypted at rest to help prevent sensitive information from being read by unauthorised users.
Resolution: Enable encryption for replication group.
Example of incorrect code:
resource "aws_elasticache_replication_group" "bad_example" {
replication_group_id = "foo"
replication_group_description = "my foo cluster"
at_rest_encryption_enabled = false
}
Example of correct code:
resource "aws_elasticache_replication_group" "good_example" {
replication_group_id = "foo"
replication_group_description = "my foo cluster"
at_rest_encryption_enabled = true
}