Chapter 61 · Amazon Elasticache
Subchapter 61.60
references/shared-security/encryption-defaults.mdMarkdown4 KBView on GitHub
Node-based encryption gotchas and migration paths. Serverless encryption is always-on and requires no configuration (covered in create-secure-cache.md).
TransitEncryptionEnabled: truemodify-replication-group with --transit-encryption-enabled and --transit-encryption-mode preferred (then switch to required). This is a three-step migration: (1) enable TLS in preferred mode, (2) update all clients to use TLS, (3) switch to required mode.AtRestEncryptionEnabled: true at creation time.KmsKeyId at creation.Valkey default: For Valkey caches,
AtRestEncryptionEnableddefaults totrueif not explicitly specified. Redis OSS caches require it to be explicitly set.
If an existing node-based cluster was created without encryption, the migration path depends on which encryption is missing.
For supported engine versions (Redis OSS 7.0+, Valkey 7.2+), you can enable TLS in three steps:
Step 1: Enable TLS in preferred mode (accepts both TLS and non-TLS connections)
aws elasticache modify-replication-group \
--replication-group-id my-cluster \
--transit-encryption-enabled \
--transit-encryption-mode preferred \
--apply-immediately \
--region us-east-1Wait for the modification to complete. During this phase, both encrypted and unencrypted connections are accepted.
Important: DNS endpoints change during TLS migration. When switching to
preferred, new TLS endpoints are generated. When switching torequired, old non-TLS endpoints are deleted. Do not hardcode endpoints in your application. After each migration step completes, usedescribe-replication-groupto retrieve the current endpoints.
Verify all application clients are configured with TLS before proceeding.
Step 3: Switch to required mode (only TLS connections accepted)
aws elasticache modify-replication-group \
--replication-group-id my-cluster \
--transit-encryption-mode required \
--apply-immediately \
--region us-east-1For older engine versions that do not support modify-replication-group with transit encryption changes, the only option is:
TransitEncryptionEnabled: true.At-rest encryption cannot be enabled on an existing cluster. The migration path is:
AtRestEncryptionEnabled: true.This requires a brief cutover window. Plan for: