It seems that currently you can only specify subnet and security group ids while specifying Lambda’s VPC configuration:
You can add VPC configuration to a specific function in
serverless.ymlby adding a
vpcobject property in the function configuration. This object should contain the
subnetIdsarray properties needed to construct VPC for this function.
My assumption is it’s using default VPC. But what if I want to create custom VPC first, and then assign it to my Lambda function just like Lambda Management Console?
Can I use something like:
If it’s not supported is there any plan to implement it in near future?