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?