79182245

Date: 2024-11-12 18:06:37
Score: 0.5
Natty:
Report link

The ElastiCache service is designed to be accessed exclusively from within AWS.

If you want to access it from your local machine, the easiest and the cheapest way is to you use AWS SSM Start-Session with port forwarding (https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-sessions-start.html#sessions-remote-port-forwarding).

First install the Session Manager plugin for AWS CLI (https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-install-plugin.html)

Login via CLI to AWS and run:

aws ssm start-session \
    --target instance-id \
    --document-name AWS-StartPortForwardingSessionToRemoteHost \
    --parameters '{"host":["redis-host.us-east-2.elasticache.amazonaws.com"],"portNumber":["6379"], "localPortNumber":["6379"]}'

Then you can access your redis on localhost:6379. Make sure to test first with tls disabled.

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Vasko