No, in order for your Lambda to access endpoints within a VPC, the Lambda function must be inside that VPC as well. However, you can
invoke VPC Lambda functions from other non-VPC Lambda functions and vice versa. So if you need a function that can access your database (perhaps a save operation), you could package that into a VPC Lambda and then have another non-VPC service
invoke it and pass the data to be saved. You could either wait for the response with an “InvocationType” of
RequestResponse, or just pass the data off as an event using the
Event invocation type.