IDE에서 elasticache cluster 접속하기

dasd412·2024년 6월 17일
0

실무 문제 해결

목록 보기
1/17

전제

private vpc에 elasticache가 있고, bastion host를 경유해서 접속해야 하는 상황이다.


마주친 에러

 Port forwarding is not specified for <ip:port>. The hosts and ports of all nodes must be specified in the URL to create the necessary SSH tunnels: host1:port1,host2:port2,.

해결 방법

다음과 같이 에러에서 표시된 ip, port를 쉼표로 연결해주면 된다.

jdbc:redis:cluster://<AWS 엘라스틱 캐시 구성 엔드 포인트>,<ip:port>/<dbname>

출처

If SSH tunneling is required for the connection to the cluster, indicate the hosts and ports of all nodes of the cluster: jdbc:redis:cluster://<host_address_01>:<port_number_01>,<host_address_02>:<port_number_02>,<host_address_03>:<port_number_03>/<database_name>.

https://www.jetbrains.com/help/idea/redis.html#connect-to-redis-database


profile
시스템 아키텍쳐 설계에 관심이 많은 백엔드 개발자입니다. (Go/Python/MSA/graphql/Spring)

0개의 댓글