I am quiet new to serverless as well AWS lambda. Currently since AWS Lambda is not available in Asia Pacific Mumbai , i am having issues with connecting to VPC hosting my database. I can't move my database to region where Lambda due to some concerns. I have read the following links:
I tried both updates of using aws cli or changing severless yml file but it displays an error of not able to find the VPC. Any help would be highly appreciated.
Hi,You could look at cross region peering - https://aws.amazon.com/answers/networking/aws-multiple-region-multi-vpc-connectivity/ and http://docs.aws.amazon.com/AmazonVPC/latest/PeeringGuide/Welcome.html
Peering is definitely what you need. Just keep in mind that your Lambda functions will need to be VPC-based themselves (and by default, Lambda functions are not VPC-based) in order to leverage the VPC peering (and talk to RDS based in a VPC).