I am trying to connect to AWS documentDB from a lambda function which works when I use the snippet below, I can successfully create a connection and query the database.