How can I create an AWS Lambda function using the AWS CLI?

前端 未结 3 1920
心在旅途
心在旅途 2021-02-07 09:56

I am trying to create an AWS Lambda function using the command

aws lambda create-function \\
  --function-name foo\\
  --runtime nodejs\\
  --role lambda_basic_e         


        
3条回答
  •  忘了有多久
    2021-02-07 10:31

    On mac I had to use absolute path, but added to the prefix there are actually 3 slashes.

    Prefix:

    fileb://
    

    Path

    /Users/myuser/Apps/folder/zips/file.zip
    

    Complete

    fileb:///Users/myuser/Apps/folder/zips/file.zip
    

提交回复
热议问题