When to use AWS CLI versus AWS SAM CLI for Lambda function deployment

0

Hi all, I am a fairly new user of AWS services, including AWS Lambda. My Python lambda function required some external dependencies that required me to opt out of the console editor, so I was looking into the different ways that AWS allows me to deploy lambda functions.

This led me to two (as far as I can tell) methods: using AWS CLI (i.e. aws lambda update-funcition-code) or SAM CLI (i.e. sam deploy). Can someone give me a very general idea on what situations would require me to use one over the other? AWS CLI seems very straight forward to me: create the zip, upload the zip. Is there any reason I should be using SAM CLI over it?

Thank you for everyone's help in advance.

vincem
已提問 5 年前檢視次數 2729 次
1 個回答
0

AWS CLI is great when you are just playing around with Lambda. You will want to quickly transition over to AWS SAM when you want to start developing Lambda functions so that you have the ability to build and test locally before deploying to AWS.

已回答 5 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南