当我尝试使用以下方法对服务进行package时:
SLS_DEBUG=* $(npm bin)/serverless package
serverless-framework给了我一个错误:
Error --------------------------------------------------
EISDIR: illegal operation on a directory, read
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variabl
当我尝试在AWS上部署我的服务时。它显示了环境变量中的验证错误。但是我的所有变量的格式都是正确的,因为以前它工作得很好。
An error occurred: AuthenticateUserLambdaFunction - Resource handler returned message: "1 validation error detected: Value at 'environment.variables' failed to satisfy constraint: Map
keys must satisfy constraint: [Member must
我试图使用serverless deploy在lambda上部署代码,结果出错,尝试了多个在线可用的解决方案,但没有工作。
错误-
Serverless: Packaging service...
Serverless Error ---------------------------------------
The specified bucket does not exist
Get Support --------------------------------------------
Docs: docs.serverless.com
今天上午,我的项目的无服务器部署开始失败。我没有更改代码中的任何内容,最后一次成功部署是在大约一周前。
下面是部署日志:
Error --------------------------------------------------
Error: Unknown object type "asyncfunction"
at Object._object (/usr/local/lib/node_modules/serverless/node_modules/object-hash/index.js:218:17)
at Object._func
我试图使用Serverless对包进行简单部署。然而,当我尝试时,我得到了下面的错误,说我指定的桶不存在。
我已经在按服务提供服务的基础上尝试了这一点,似乎我的桶都不存在,但是我正在S3和cloudwatch中查找,而且所有的桶都在那里。
是否有可能让Serverless输出,它试图访问的桶?,我发现这个错误非常没有帮助,
Serverless Error ---------------------------------------
Could not locate deployment bucket. Error: The specified bucket does not ex
当我试图在AWS上部署lambda时,我得到了下面的错误。
Serverless Error ---------------------------------------
An error occurred: WarmUpPluginLambdaFunction - The runtime parameter of nodejs6.10 is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (nodejs10.x) while cre
我试图使用以下命令测试无服务器的lambda函数
命令
serverless invoke local -f send --log --stage test
错误
TypeError: chalk(...).dim is not a function
整个堆栈跟踪:
Type Error ---------------------------------------------
TypeError: chalk(...).dim is not a function
at /snapshot/serverless/lib/Serverless.js:83:47
at
场景
我正在为本地Lambda输出编写单元测试。我不想手动输入所有不同lambda函数的名称,而是动态地生成列表。
sls deploy list functions
将返回部署到aws的函数列表,但不返回本地无服务器环境中的函数列表。
问题
如何获得本地函数的列表?
“帮助”菜单对于如何运行本地函数很有用,但不用于组装本地函数列表。
$ sls --help
Commands
* You can run commands with "serverless" or the shortcut "sls"
* Pass "--verbose" to
在serverless-dynamodb-local/index.js:11:43中初始化时出现类型错误。 我该如何解决这个问题? directory (my-git-branch) > serverless
Serverless: Running "serverless" installed locally (in service node_modules)
Serverless: To ensure safe major version upgrades ensure "frameworkVersion" setting in servic