Skip to content

[Bug]: Cannot connect to AWS Redis cluster over SSM #3416

@yassinecc

Description

@yassinecc

Preconditions

I had previously set up SSM connection through a bastion instance, and I am able to connect with redis-cli

Steps to reproduce

  • Create a Redis cluster (cluster-mode enabled) on AWS
  • Allow bastion host access on cluster security group over port 6379
  • Retrieve cluster configuration endpoint from AWS console
  • Start SSM session with
aws ssm start-session --target $bastion_instance_id --profile $profile \
    --document-name AWS-StartPortForwardingSessionToRemoteHost \
    --parameters host="$cluster_endpoint",portNumber="6379",localPortNumber="6370"
  • Create a new database connection on Redis Insight, using host 127.0.0.1, port 6370

Actual behavior
I see a "Could not connect to 127.0.0.1:6370, please check the connection details." error message

Expected behavior
Connection should be successful

Screenshots
image
image

Additional context
OS: Ubuntu 22
Redis server: AWS Elasticache Redis 7.1
Redis Insight: v2.48
Redis CLI: v6.0.16

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions