Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Yes, SAM CLI can be used to deploy Lambdas into a VPC and a serverless API gateway. SAM allows the configuration of VPCs and API Gateway integrations within the sam.yaml file.

VPC configuration can be specified under the resources section of the sam.yaml file, which defines the VPC and the subnets for the Lambda function.

API Gateway integration can be specified under the events section of the sam.yaml file, which describes how the API Gateway sends requests to your Lambda function.

Once the sam.yaml file is configured, you can package and deploy your application using the SAM CLI.