Serverless VPC RDS connect ETIMEDOUT

Hi I am creating lambda function using the below serverless.yml
provider:
name: aws
runtime: nodejs6.10
stage: dev
region: us-east-1
environment:
ENVIRONMENT_TYPE: {self:provider.stage} vpc: securityGroupIds: - sg-xxx subnetIds: - subnet-xxx - subnet-xxx - subnet-xxx - subnet-xxx - subnet-xxx - subnet-xxx iamRoleStatements: - Effect: "Allow" Action: - "ec2:CreateNetworkInterface" - "ec2:DescribeNetworkInterfaces" - "ec2:DeleteNetworkInterface" Resource: "*" functions: process: handler: handler/handler.process events: - http: path: getUserData method: get cors: true reqValidatorName: onlyParameter request: {file(custom_yml_files/get_user_data_param.yml)}
After deploying , my function is not able to connect to RDS, both RDS and lambda function are in same VPC.
Whenever the function is trying to connect.
It shows below error:-
Error: connect ETIMEDOUT

Please help in the issue.