Wednesday 7 June 2017

AWS configured RDS mysql DB instance with VPC

In my AWS nodejs project, I have created a lambda function which needs to access AWS RDS mysql. Have configured mysql DB instance with VPC. On execution, below statement is giving error "Cannot find module 'mysql'"

var mysql=require('mysql');

Please suggest, if we need to explicitly upload nodejs mysql module to lambda function. My code runs properly in my local setup.



via Akhilesh Pandey

No comments:

Post a Comment