I run a handful of Lambda in a private routable subnet and deploy them with SAM:
Globals:
Function:
Runtime: python3.11
VpcConfig:
SecurityGroupIds:
- sg-085912345678492fb
SubnetIds:
- subnet-071f712345678e7c8
- subnet-07fd123456788a036
This requires that I manually configure the security group and the subnets externally. Is it possible to include the configuration of the security group and the subnets in the SAM file?