I am new to AWS RDS & MySQL document store.
I have created one lambda (NodeJS 4.3) & one RDS MySQL instance which is having default port 3306. I have enabled X Plugin as mentioned in this documentation via MySQL shell and its successfully installed which is needed for MySQL document store.
My lambda imports xdevapi (@mysql/xdevapi) package and tries to connect with MySQL RDS instance on port 33060 because xdevapi uses 33060 as default port.
but when I tries to test my lambda then it is unable to connect. Because, xdevapi uses default port 33060. But my MySQL default port is 3306. So, I added custom rule in security groups to allow inbound for port 33060. And then, I tried to test lambda then it still unable to connect.
Kindly, suggest if anything I am missing here.
It looks like the
getSession
method takes aport
option: