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 年前2724 查看次数
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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则