Create Lambdas in an existing VPC using CDK

Madeesha’s Tech Space
ITNEXT
Published in
2 min readDec 8, 2020

--

By default lambda is not bound to a VPC and it can communicate with all the resources inside public subents. However, there are many use cases that you need to connect your lambda with databases, ec2 or internal services inside private subnets in a VPC. To access those resources inside VPC using a lambda, it should be located inside the VPC itself.

--

--