我的 Lambda 中有一个名为my-s3-function. 我需要将此依赖项添加到我的 Lambda Node.JS。我已经按照这部分更新了包含依赖项的脚本(虽然,我没有按照我需要使用压缩文件夹的步骤,zip -r function.zip .而是通过在我的 PC 上右键单击它来压缩文件夹)。
zip 文件的结构如下:
|node_modules
|<folders>
|<folders>
|<folders>
... // the list goes on
|index.js
|package_lock.json
在终端输入代码aws lambda update-function-code --function-name my-s3-function --zip-file fileb://function.zip后,我得到以下响应:
An error occurred (MissingAuthenticationTokenException) when calling the UpdateFunctionCode operation: Missing Authentication Token
我应该怎么做才能解决这个问题?