Ask Your Question
4

Can SAM CLI be used to deploy lambdas into a VPC and serverless API gateway?

asked 2023-06-02 17:48:15 +0000

huitzilopochtli gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-06-02 17:49:01 +0000

ladyg gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-02 17:48:15 +0000

Seen: 1 times

Last updated: Jun 02 '23