Hi@akhtar,
You can configure a Lambda function to connect to private subnets in a virtual private cloud (VPC) in your AWS account. Use Amazon Virtual Private Cloud (Amazon VPC) to create a private network for resources such as databases, cache instances, or internal services. Connect your function to the VPC to access private resources during execution.
To connect a function to a VPC
- 
Open the Lambda console Functions page.
 
- 
Choose a function.
 
- 
Under VPC, choose Edit.
 
- 
For VPC connection, choose Custom VPC.
 
- 
Choose a VPC, subnets, and security groups.
 
- 
Choose Save.
 
When you connect a function to a VPC, Lambda creates an elastic network interface for each combination of the security group and subnet in your function's VPC configuration. This process can take about a minute.