ElastiCache Redis Connection Timed Out: Fix
An ElastiCache “connection timed out” almost always means the network path is blocked, not that Redis or Valkey is slow.
The short version: a normal ElastiCache cache is reachable only from inside its VPC. Allow inbound TCP 6379 (and 6380 for Serverless) on the cache’s security group from the client’s security group, connect to the right endpoint (the configuration endpoint with a cluster-aware client when cluster mode is on), and use TLS: Serverless always encrypts in transit, and a client without TLS just hangs until it times out. Test from an EC2 instance in the same VPC with valkey-cli -h ENDPOINT --tls -p 6379 PING. The one exception: since September 2026, Valkey 9.0+ Serverless caches can be created with a public endpoint, which uses IAM authentication over TLS 1.3 instead of security groups.
Jake: "My shop app says connection timed out. Do I need to increase the timeout?"
Ethan: "Not yet. We need to prove the packet can travel from the application to the cache first."
The 30-second diagnosis: a timeout is usually a network path failure
A connection timeout is not the same as a Redis command error. When a client attempts to open a TCP connection to an ElastiCache endpoint but receives no answer before its connection timeout, the first investigation is the route from the client to the cache. Security groups, routing, subnet selection, and network ACLs belong ahead of key names, memory eviction, and application logic.
Look at the exact exception. A connection timed out often suggests a dropped network path. Connection refused indicates the destination actively rejected the connection. Authentication errors tell you your application reached Redis but was not accepted. A TLS handshake error usually means the network path exists but encryption parameters disagree. These are different branches of the diagnostic tree.
Making the client wait sixty seconds instead of five does not fix a timeout; it only makes the failure slower. A longer timeout can conceal a broken path and add latency during incidents. First use DNS resolution, a TCP probe, then a TLS-aware Redis PING from a known-good machine.
Before you open a single port, find out which kind of cache you have. The rest of your checks depend on it.
First identify which ElastiCache networking model you own
Node-based Redis OSS and Valkey clusters use private network addresses inside your VPC. A laptop on an ordinary home internet connection cannot dial the private endpoint directly. Neither can a Lambda function that has no suitable private network attachment. A private cache also cannot be made internet-facing merely by opening TCP 6379 to 0.0.0.0/0 in its security group.
An important exception exists as of September 2026: ElastiCache Serverless for Valkey 9.0 and later can be created with a public endpoint. These public caches are specifically designed for internet connectivity, with mandatory IAM authentication and TLS 1.3. They are a distinct configuration—not a setting that converts a traditional Redis OSS replication group into a public cluster.
For a VPC cache, keep the rest of this article focused on private connectivity: which VPC owns the endpoint, which security group is on the client, and which subnets and routes actually carry packets to the cache.
The four details to copy from the console before changing anything
Open the ElastiCache console and record the region, cache name, status, engine/version, connection type, endpoint hostname, port, cluster mode, and in-transit encryption setting. Next record its VPC and security groups. The intended client has an EC2 instance ID, a Lambda function with VPC configuration, or an ECS task ENI and security group.
The same AWS account, environment name or Availability Zone does not mean the cache and client share a VPC, so check it. A VPC ID is decisive. Likewise, a replication-group endpoint can differ from a serverless endpoint, and the reader endpoint may not be suitable for writes.
With these details captured, you can perform a controlled test and understand why changing a rule helped or did not help.
Step 1: allow inbound traffic from the client security group
For a VPC-connected Redis OSS or Valkey cache, open the EC2/VPC Security Groups page and examine the security group assigned to your cache—not just your instance. Add an inbound TCP rule on the configured Redis port, commonly 6379, with Source set to your client security group ID. A group-to-group rule is safer and more maintainable than opening the port to an entire CIDR.
Example: cache SG sg-cache123 inbound TCP 6379 source sg-app456. The EC2, Lambda, or ECS workload must genuinely have sg-app456 assigned to the network interface handling that connection. Also verify that the client SG permits outbound TCP traffic to the cache. Default egress is often open, but production policies may restrict it.
Security groups are stateful; if your client connection is admitted, ordinary return traffic does not require a separate reverse security-group rule. Network ACLs behave differently and are covered later.
| Where | Direction | Protocol/port | Peer |
|---|---|---|---|
| Cache security group | Inbound | TCP 6379 (or custom port) | Client security group ID |
| Client security group | Outbound | TCP 6379 (or custom port) | Cache security group or private CIDR |
| VPC Serverless cache | Inbound | TCP 6379 and 6380 | Client security group ID |
Step 2: check VPC membership, peering routes and subnet ACLs
Within one VPC, the automatically created local route normally handles traffic between the cache and application subnets, even if they reside in different Availability Zones. Therefore placing EC2 in the exact same subnet can simplify a test but is not a general production requirement.
When VPCs differ, a peering connection or other supported private-network routing arrangement must be active, with reciprocal routes toward the other VPC CIDR. Confirm the destination and return routes in each applicable subnet route table. A route to an internet gateway or NAT gateway does not make a private ElastiCache endpoint reachable from an unrelated VPC.
Inspect custom network ACLs in both client and cache subnets. They are stateless: outbound destination TCP 6379 and return traffic to the client ephemeral ports need compatible inbound and outbound rules. Overlapping CIDR blocks and DNS settings can complicate peered connections.
Step 3: choose the endpoint that matches cluster mode
| Cache shape | Choose this endpoint | Client implication |
|---|---|---|
| Single node, cluster mode off | Node endpoint | Reads and writes |
| Replication group, cluster mode off | Primary endpoint for writes; reader endpoint for distributed reads | Use standard Redis client |
| Sharded, cluster mode on | Configuration endpoint | Use cluster-aware client and allow access to all discovered nodes |
| VPC Serverless | Serverless endpoint, normally 6379 plus 6380 as needed | TLS and cluster-aware client |
| Public Valkey Serverless 9.0+ | Public endpoint | TLS 1.3 plus IAM auth, internet egress |
A cluster-enabled client initially reaches a configuration endpoint, learns slot assignments, and can connect to other nodes or follow MOVED/ASK redirects. If routing or security groups block those node addresses, the first socket test can pass while application operations still time out. In redis-cli, -c enables following Redis Cluster redirects.
A reader endpoint is not the appropriate default for writes. Connect by hostname rather than a node IP, because failover or replacement can change where it resolves. Always copy the live hostname from ElastiCache.
Jake: "So the DNS result alone cannot prove the cache is reachable?"
Ethan: "Right. Test TCP and TLS from the same runtime."
If you test each layer on its own, you will know exactly where your connection stops.
Step 4: test DNS, TCP, TLS and Redis separately
Run these commands on EC2 or in an equivalent compute environment within the same VPC. Replace the example hostname, and keep real passwords out of your shell history. Successful DNS lookup means only that the name resolves—it does not prove routing or access.
export CACHE_HOST="your-cache-endpoint.cache.amazonaws.com"
getent hosts "$CACHE_HOST"
python3 - <<'PY2'
import os, socket
h=os.environ["CACHE_HOST"]
try:
with socket.create_connection((h, 6379), timeout=5):
print("TCP CONNECTED")
except Exception as e:
print(type(e).__name__, str(e))
PY2
# For TLS-enabled node-based cache:
valkey-cli -h "$CACHE_HOST" -p 6379 --tls PING
# For cluster mode enabled:
valkey-cli -c -h "$CACHE_HOST" -p 6379 --tls PING
For systems with redis-cli built with TLS support, equivalent commands use redis-cli --tls. An authentication-enabled cache might respond NOAUTH to PING: that means the socket and Redis protocol are reachable, and the next step is authentication—not routing.
On Amazon Linux 2023, install the valkey CLI with sudo dnf install valkey -y. For password authentication, use --askpass rather than embedding the secret in a command line. If your client says that --tls is unknown, install a TLS-capable build.
Why TLS can look like a connection failure
Your application must enable TLS when your cache has in-transit encryption. In Python redis-py, that usually means ssl=True or a rediss:// URL; in a Node.js client it may be a TLS socket option. Use certificate verification in production, and treat ssl_cert_reqs="none" as a short test only.
When your application sends plain Redis protocol bytes to a TLS listener, the cache cannot interpret them as a valid encrypted session. The library may produce a timeout, EOF, connection reset, or SSL exception depending on how it waits and retries. Distinguish the TCP three-way handshake from the subsequent TLS handshake.
ElastiCache Serverless VPC caches always use encryption in transit. Public Valkey Serverless additionally requires TLS 1.3 and IAM authentication; using ordinary Redis AUTH alone is not a substitute.
EC2: compare a working instance with a failing instance
If EC2-A works and EC2-B times out, compare their VPC IDs, ENI security groups, subnet route tables, NACLs, DNS resolution, and operating-system firewalls. Instances that look identical in the EC2 console may have different security groups or live in separate subnets with different ACLs.
Run exactly the same hostname, port and TLS-aware PING on both. Compare whether DNS resolves to private addresses and whether a socket can be established in five seconds. A mismatch in endpoint or TLS settings is also common when one app has an old environment variable.
For rigorous diagnosis, VPC Flow Logs can show accepted or rejected flows at the network interface and subnet layer, though application-level TLS/auth failures will not appear as network rejects. Reachability Analyzer can help with supported ENI-to-ENI pathways; it is not a replacement for checking the real Redis client.
Jake: "My EC2 instance connects fine. Why does the Lambda function time out?"
Ethan: "Because the function runs with its own security group and subnets. The cache has to allow that group too, not just the instance's."
Lambda: the VPC checkbox is not enough
A Lambda function not configured for VPC connectivity cannot ordinarily reach a private ElastiCache cache. Choose private subnets in your cache VPC—or another VPC with the right private route—and assign your function a security group permitted by the cache security group. Inspect your function configuration after deployment rather than assuming IaC picked the expected subnets.
Lambda uses managed network interfaces for VPC access. Your execution role needs appropriate permissions to manage those interfaces; AWSLambdaVPCAccessExecutionRole is a common managed policy for the setup. This permission allows network-interface provisioning; it does not itself open the Redis port. A Lambda in private subnets does not need NAT for a same-VPC private cache connection, although it may need NAT or endpoints to reach other AWS or internet services.
For a quick investigation, log the resolved cache hostname, Lambda VPC settings supplied by deployment configuration, and the exact timeout exception. Keep passwords and IAM auth tokens out of your logs.
ECS: identify the task ENI and the actual source group
For ECS tasks using awsvpc networking, check the security groups and subnets on the task ENI itself. It is not sufficient that the ECS container instance has network access, because Fargate and awsvpc tasks have their own task networking.
Confirm whether the task is running in the same VPC as ElastiCache, whether its security group is listed in your cache ingress rule, and whether DNS plus TCP socket checks work from within the task. With ECS Exec enabled, a short-lived debugging session can inspect DNS and port connectivity; use a disposable debug task if your application image intentionally excludes shell utilities.
When cluster mode is enabled, allow connections to the cache’s discovered nodes, not merely its initial hostname.
Serverless VPC caches have two useful ports
For a VPC-connected ElastiCache Serverless cache, allow TCP 6379 for primary traffic and TCP 6380 for read-optimized access. Some cluster-aware libraries establish connections to both, even without explicitly requesting replica reads. Missing 6380 can cause surprising connection delays or errors.
Serverless caches use TLS, and their clients must support Redis Cluster semantics. Unlike node-based clusters, their internals and endpoint behavior are managed more abstractly; treat the Serverless endpoint and both ports as the contract, rather than expecting a single fixed Redis host with traditional standalone semantics.
Public Serverless is a separate option, currently documented for Valkey 9.0+. Public endpoints do not use VPC security groups and require TLS 1.3 and IAM authentication. Check the connection type first; the ordinary private security group checklist does not apply to a public endpoint.
Worked example: the Lambda that timed out for an hour
Imagine orders-api, a Lambda function in us-east-1, calling a private Redis OSS replication group called order-cache. Its handler shows Connection timed out on every invocation. Engineers increase the library socket_timeout to 30 seconds and receive the same outcome more slowly.
The cache console shows VPC vpc-1111, primary endpoint master.order-cache.example.cache.amazonaws.com:6379, in-transit encryption enabled and cache security group sg-cache. The Lambda configuration shows subnets in vpc-2222 with security group sg-lambda. The VPC IDs differ; there is no peering or cross-VPC route. The inbound Redis rule also references an obsolete application security group.
An engineer runs valkey-cli --tls PING on an EC2 debug instance in vpc-1111 and receives PONG. That proves the cache and endpoint are healthy in the intended private network. Next they change Lambda to approved subnets in vpc-1111, grant sg-cache inbound TCP 6379 from sg-lambda, and ensure the Lambda function uses TLS. New invocations succeed in under a second.
The essential lesson is that raising the connection timeout was not a repair at all. The evidence chain—VPC IDs, cache ingress, debug EC2 PING, and correctly placed Lambda networking—isolated the missing private path. Changes to VPC configuration may involve a deployment and ENI setup interval, so verify the new configuration became active before testing.
Jake: "Does serverless mean there is no security group?"
Ethan: "A VPC-connected serverless cache still uses security groups; public endpoint caches are different."
Runnable Lambda Python example with controlled timeouts
The following sample assumes a reachable private Redis OSS cache that uses TLS but no AUTH token; modify authentication for your environment. Package redis-py with the function, set CACHE_HOST and CACHE_PORT, and configure the VPC settings and security groups separately. Keep sensitive key data out of the response.
import os
import redis
r = redis.Redis(
host=os.environ["CACHE_HOST"],
port=int(os.getenv("CACHE_PORT", "6379")),
ssl=True,
ssl_cert_reqs="required",
socket_connect_timeout=4,
socket_timeout=4,
health_check_interval=30,
decode_responses=True,
)
def lambda_handler(event, context):
try:
result = r.ping()
return {"reachable": bool(result)}
except (redis.exceptions.ConnectionError, redis.exceptions.TimeoutError) as exc:
print("Redis connectivity failure:", type(exc).__name__)
raise
For cluster-mode-enabled groups, use an appropriate RedisCluster client and the configuration endpoint. For IAM-authenticated Serverless or public caches, integrate an IAM token provider with rotation rather than copying this unauthenticated example unchanged. Reuse connection pools where you can, so a burst of traffic does not become a connection storm.
AWS CLI inventory and connection-check commands
Use the CLI to retrieve resource attributes rather than relying on memory. Validate account and region first. Depending on your cache type, query replication groups or serverless caches. The examples below are intentionally read-only.
aws sts get-caller-identity
aws elasticache describe-replication-groups \
--replication-group-id order-cache --region us-east-1
aws elasticache describe-serverless-caches \
--serverless-cache-name order-cache --region us-east-1
aws lambda get-function-configuration \
--function-name orders-api --region us-east-1 \
--query "{VpcConfig:VpcConfig,Timeout:Timeout}"
aws ec2 describe-security-groups --group-ids sg-EXAMPLE \
--region us-east-1
aws ec2 describe-route-tables --filters Name=vpc-id,Values=vpc-EXAMPLE \
--region us-east-1
Replace all resource names and IDs with your own. A serverless cache may use different configuration attributes from a replication group. If the CLI call cannot locate the resource, ensure you selected the correct region and account before drawing conclusions about connectivity.
If you want to test from your own laptop, you can do it without making your cache public.
Laptop debugging without exposing a private cache
For a traditional private cache, use a VPN connection into the VPC or connect through a trusted, access-controlled EC2 jump host. AWS Systems Manager Session Manager can provide a controlled channel without public SSH access if your organization’s IAM and session policies permit it.
An SSH tunnel is also possible for a narrowly scoped debugging task: ssh -L 6379:private-cache-endpoint:6379 ec2-user@trusted-bastion. Your local client then connects to localhost:6379; TLS verification may require special handling because the expected certificate hostname is the ElastiCache endpoint, not localhost. For cluster mode, a single-port tunnel is often insufficient because clients discover and connect to multiple node addresses.
Keep a private cache private; an internet-facing TCP load balancer just to make redis-cli work creates a bigger problem. If you specifically want a directly internet-accessible managed cache, evaluate the separately supported public Valkey Serverless design, IAM auth, TLS 1.3, and your organization’s exposure policy.
When DNS resolution itself fails
Use getent hosts, dig, or nslookup from the same compute environment as the failing application. A NXDOMAIN response or resolution timeout is not a Redis security-group failure. Check typos, region, VPC DNS support and hostnames, DNS forwarders, and custom resolver policies.
In cross-VPC deployments, verify that DNS options and resolvers can return useful private records and that the resulting addresses have a private path in both directions. DNS success does not guarantee that the TCP connection will work. Also connect by endpoint name rather than a cache IP address: scaling and failover can change the targets behind it.
A precise failure-signature matrix
| Observed result | Most likely layer | Next test |
|---|---|---|
| Name does not resolve | DNS configuration or wrong endpoint | getent hosts and cache console |
| TCP connect times out | Route, SG, NACL or blocked port | Compare client/cache SGs and VPC routes |
| TCP works but TLS fails | Encryption or hostname verification | Use --tls with current hostname |
| NOAUTH / WRONGPASS | Redis auth credentials | Check AUTH/IAM configuration |
| MOVED / ASK or intermittent shard timeouts | Cluster-aware client and node reachability | Enable -c and inspect all node paths |
| Writes fail through reader endpoint | Endpoint choice | Use primary endpoint |
| Only one instance fails | Different task/ENI SG, subnet or route | Run identical probes from each |
| Serverless hangs on reads | Possibly missing TCP 6380 | Allow 6379 and 6380 |
The matrix is a starting hypothesis, not proof. Capture the actual exception, DNS result, socket test and security-group evidence before making broad changes.
Jake: "Why would my second instance fail if the first can ping?"
Ethan: "A second instance can have a different security group, subnet, or network ACL."
Network ACLs, ephemeral ports, and connection exhaustion
If security groups are correct but timeouts persist, inspect custom network ACLs. Because NACLs are stateless, a client request to destination port 6379 requires return-path allowance to the source ephemeral port range. The appropriate ephemeral range depends on client operating system and runtime; check your own client rather than assuming every client uses the same ports.
Also examine connection churn. An overloaded application creating thousands of short-lived TLS connections can exhaust local ephemeral ports or encounter connection-tracking pressure. Create and reuse client pools with controlled limits, particularly in Lambda execution environments and high-task-count ECS services.
Use VPC Flow Logs, application connection metrics and relevant ElastiCache CloudWatch metrics to distinguish a blanket network misconfiguration from intermittent capacity pressure. A persistent timeout on every connection to a new environment is more likely a missing path than a server performance problem.
Safe deployment order, rollback and production checks
Before editing anything, write down the exact client security group, ElastiCache security group, port and endpoint. Apply the smallest possible ingress change rather than opening Redis to an entire corporate or public address range. Confirm egress and subnet routes, then make the client’s TLS setting match the cache.
After rollout, compare success rate, connection latency and application error logs. Run a harmless PING rather than large write tests. If the change makes no difference, rollback any unnecessary broad permissions and move to the next layer. Keep evidence of what you tested so the incident does not loop through the same guesses.
A healthy Redis connection is only one part of secure operation. Authenticate where configured, rotate secrets/tokens, protect the data path with TLS, and restrict access to specific workloads.
Frequently misunderstood details
It is not necessary for a Lambda or EC2 instance to have a public IP address when connecting to a private ElastiCache cache in the same VPC. NAT does not substitute for same-VPC local routing. A private cache can be accessible across VPC peering with appropriate configuration, but that is not automatic just because both VPCs share an account.
Likewise, opening an instance SG inbound on 6379 does not permit that instance to reach a cache. The direction that matters on a client-to-cache connection is outbound on the client and inbound on the cache. For Serverless VPC endpoints, check both 6379 and 6380.
Final practical checklist and next steps
Identify node-based private, VPC Serverless or public Valkey Serverless. Capture the region, exact endpoint, port, encryption and cluster mode. Verify DNS from the failing runtime, the client’s real subnet/VPC/security group, the cache security-group ingress, and the return network path. If TCP connects, switch immediately to TLS and authentication checks. If only cluster operations fail, inspect cluster support and secondary node connections.
When a query works from an EC2 debug box but fails from Lambda, the difference is almost always in actual client networking or client configuration, not in the cache hostname. The repeatable approach is evidence, one layer at a time.
For readers preparing for an AWS certification
We have been covering AWS certifications alongside our fixes, so here is a short extra for readers studying for one. If you only came for the fix, you already have it; feel free to skip this part.
Exams that test this topic: Solutions Architect – Associate (SAA-C03) • CloudOps Engineer – Associate (SOA-C03) • Developer – Associate (DVA-C03 from December 1, 2026).
Here are the exam-style questions this topic tends to raise, with the reasoning you need to answer them:
1. An EC2 instance times out connecting to ElastiCache for Redis OSS. What do you check first?
That the cache's security group allows inbound TCP 6379 from the client's security group, and that the client is in the same VPC or a connected one.
2. Can you connect to an ElastiCache cluster directly from your laptop over the internet?
Not to a node-based cluster: its endpoints are private to the VPC, so use a VPN, AWS Direct Connect, or a tunnel through an instance in the VPC. The one exception, since September 29, 2026, is ElastiCache Serverless for Valkey 9.0 or later created with a public endpoint, which needs IAM authentication and TLS 1.3.
3. A Lambda function times out connecting to ElastiCache. What must be configured?
Attach the function to the VPC with subnets that can reach the cache and a security group that the cache's security group allows.
4. A client connects, but every command hangs, and in-transit encryption is on. What is the likely cause?
The client is not using TLS. Turn TLS on in the client, for example redis-cli --tls.
5. Writes fail when the app uses the reader endpoint. Why?
The reader endpoint points at read-only replicas. Send writes to the primary endpoint.
6. Which ElastiCache option removes node sizing and gives you a single endpoint?
ElastiCache Serverless, whose endpoint always uses TLS.
Exam codes and dates change often. Our AWS certification changes page keeps track of what is current.
Official references for this guide
- ElastiCache connection troubleshooting: ports 6379 and 6380 for Serverless, 6379 for node-based clusters; a hung connection from a client that isn’t using TLS.
- Connecting with in-transit encryption:
valkey-cli --tls,-cfor the configuration endpoint, and stunnel for clients without TLS. - Access patterns for ElastiCache in a VPC: default ports and the security-group setup.
- Public endpoints for ElastiCache Serverless for Valkey and creating one: Valkey 9.0+, IAM authentication over TLS 1.3.
Frequently Asked Questions
Can ElastiCache Redis be made public?
Traditional node-based Redis OSS or Valkey caches are private VPC resources. A newer, separate option provides public endpoints for ElastiCache Serverless for Valkey 9.0 or later, requiring IAM authentication and TLS 1.3.
What port does ElastiCache Redis use?
Node-based Redis OSS and Valkey normally use TCP 6379 unless configured otherwise. VPC-connected Serverless uses TCP 6379 and 6380; both may be needed by cluster-aware clients.
Why does ElastiCache work from EC2 but time out from Lambda?
The EC2 instance may be in the right VPC and security group while Lambda has no VPC attachment or selects unrelated subnets/security groups. Compare the actual network settings of both runtimes.
Does Lambda need a NAT gateway to reach ElastiCache?
No NAT gateway is needed for private same-VPC connectivity. NAT or endpoints may be needed for separate internet or AWS API access.
Which endpoint should I use with cluster mode enabled?
Use the configuration endpoint with a cluster-aware client. The client discovers shard nodes and may follow MOVED or ASK redirects.
Should I use a primary endpoint or a reader endpoint?
Use a primary endpoint for writes when cluster mode is disabled. Use reader endpoints for distributed replica reads where appropriate.
Can I connect to a private ElastiCache cache from my laptop?
Yes, with approved private access such as VPN or a controlled bastion/Session Manager tunnel. A direct home-internet connection to a private VPC endpoint will not work.
What does the redis-cli --tls flag do?
It enables an encrypted TLS connection. Use it when the cache has in-transit encryption enabled, including VPC Serverless caches.
Why does my connection time out despite a security group rule?
The rule may reference the wrong client group, or routing, NACLs, DNS, TLS or cluster-node connectivity may still be wrong.
Do Lambda and ElastiCache have to be in the same subnet?
No. Subnets in the same VPC ordinarily communicate using the local route, subject to security groups and NACLs. Cross-VPC access needs explicit private routing.
Do I need port 6380 for serverless caches?
For VPC Serverless caches, allow both TCP 6379 and 6380. Some libraries use both even without explicit replica reads.
Is an ElastiCache timeout an IAM permissions error?
Usually a TCP timeout points first to networking. Redis IAM authentication is a distinct authentication layer for compatible configurations, including public Serverless endpoints.
Does opening TCP 6379 to 0.0.0.0/0 make a private cache public?
No. A private node-based cache has no public endpoint/IP just because the VPC security group is broad; nevertheless, wide-open rules are poor security practice.
How can I verify the connection from an EC2 instance?
Resolve the endpoint, test a TCP socket to the configured port, then run valkey-cli or redis-cli PING with the correct TLS and cluster flags.
Why can a Redis Cluster client connect but later operations fail?
Initial configuration discovery can work while shard-node connections fail because of security-group or routing problems, or a client does not follow cluster redirects.
Does ElastiCache Serverless support public access?
ElastiCache Serverless for Valkey 9.0 and later supports public endpoints with IAM authentication and TLS 1.3. A VPC Serverless cache remains private.
Jake finished the incident with a better habit: record the endpoint, prove DNS and TCP from the failing workload, then solve exactly the layer that fails. That method is faster than changing ten settings at once.
Revision note. Written October 24, 2026; updated November 23, 2026 with exam-style practice questions. "A chain is only as strong as its weakest link," as the saying goes; check each network hop to the cache.