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년 전2604회 조회
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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠