amazon web services - AWS Lambda and MongoDB -
i'm new aws lambda , interested in trying it. have mongodb instance want connect through aws lambda function. how connect mongo instance? can't load pymongo onto aws lambda how work in lambda function?
client = mongoclient() client = mongoclient("mongodb://xxxxxx:27017 username user --password")
mongoclient can used connect mongodatabase lambda.
mongoclienturi mongoclienturi = new mongoclienturi(mongourl); mongoclient mongoclient = new mongoclient(mongoclienturi); mongodatabase db = mongoclient.getdatabase(mongodb);
Comments
Post a Comment