检测到未识别的CLI选项:“ - 个人资料”
我正在尝试通过Gitlab CICD将代码部署到AWS。所有阶段都已通过,但是在部署阶段时,我会收到以下错误。
检测到未识别的CLI选项:“ - profile”。
我已经在无服务器中定义了个人资料,不确定出了什么问题。我尝试将无服务器从最新更改为稳定,但后来我得到了 。
有人知道在这里必须做什么吗? 任何帮助将不胜感激,谢谢!
I am trying to deploy my code to AWS using Serverless through Gitlab cicd. All stages have been passed but when it comes to deployment stage, I get the following error.
Detected unrecognized CLI options: "--profile".
I have defined profile in my serverless, not sure what's going wrong. I tried changing my serverless from latest to stable but then i got this.
Does anyone know what has to be done here exactly ?
Any help would be appreciated, Thank you !!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用属性
- AWS-Profile
而不是- 配置文件
。参考: https://www.serverless.com/framework.com/framework/framework/docs/docs/docs /提供商/AWS/指南/凭据/
看起来它们已更改了无服务器V3中命名的变量。
Use property
--aws-profile
instead--profile
.Reference: https://www.serverless.com/framework/docs/providers/aws/guide/credentials/
Looks like they have changed the variables naming in Serverless v3.