Skip to content

Files

Latest commit

 

History

History
33 lines (22 loc) · 818 Bytes

aws-elastic-search-encrypt-replication-group.md

File metadata and controls

33 lines (22 loc) · 818 Bytes

Pattern: Unencrypted ElastiCache replication group

Issue: -

Description

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.

Examples

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
}