Remediation
Enable In-Transit Encryption on an Existing Replication Groupβ
Enabling in-transit encryption for an existing ElastiCache replication group is a two-step process. You must first set the transit encryption mode to preferred, which allows both encrypted and unencrypted connections. After all clients are migrated to use encrypted connections, you can then set the mode to required, which enforces encrypted connections only.
From Command Lineβ
-
Set transit encryption mode to
preferredThis step enables in-transit encryption and allows clients to connect using both encrypted and unencrypted connections:
aws elasticache modify-replication-group \
--replication-group-id {{replication-group-id}} \
--transit-encryption-enabled \
--transit-encryption-mode preferred \
--apply-immediatelyWait for the replication group to finish updating before proceeding to the next step.
-
Migrate all clients to use encrypted connections.
-
Set transit encryption mode to
requiredOnce all clients use encrypted connections, enforce encryption by setting the mode to
required:aws elasticache modify-replication-group \
--replication-group-id {{replication-group-id}} \
--transit-encryption-enabled \
--transit-encryption-mode required \
--apply-immediately