简体   繁体   English

Package 或 zip 使用无服务器创建存档但没有 lambda

[英]Package or zip archive creation with serverless but without lambda

It is needed to create zip file before deployment and there is no lambda functions.部署前需要创建zip文件,没有lambda函数。 Just some folder to zip and upload.只是一些文件夹到 zip 并上传。 Without functions: section serverless skip packaging.没有functions:无服务器部分跳过打包。 Any ideas?有任何想法吗? Any work arounds?任何解决方法?

The Serverless Framework generates two things, a zip file containing the code of your Lambda function(s) which is zipped and uploaded to AWS, and the CloudFormation JSON template which is sent to the CloudFormation API. Serverless Framework 生成两个东西,一个 zip 文件,其中包含压缩并上传到 AWS 的 Lambda 函数的代码,以及发送到 CloudFormation API 的 CloudFormation JSON 模板。

If you don't have any functions, there are no artifacts/code to zip - so packaging is not necessary.如果您没有任何功能,则没有工件/代码到 zip - 因此不需要打包。

As your stack only contains CloudFormation - you can simply run serverless deploy to apply those changes.由于您的堆栈仅包含 CloudFormation - 您只需运行serverless deploy即可应用这些更改。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM