Tying to connect to docdb with ssm AWS-StartPortForwardingSessionToRemoteHost

0

I am trying to connect to docdb cluster from my local laptop, using ssm port forwarding. I did the following

aws ssm start-session --target instance-id \
--document-name "AWS-StartPortForwardingSessionToRemoteHost" \
--parameters "host=clusterhost,localPortNumber=27017,portNumber=27017

But when I try to connect, it gives me back Server selection timed out after 30000 ms message back. I have created the bastionbox with cdk, and have attached AmazonSSMManagedInstanceCore role to it Connecting from bastion box to docdb works however, so I guess there is some issue with port forward by ssm. Is there a way to debug this and find the root cause?

質問済み 6ヶ月前90ビュー
回答なし

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ