检测到未识别的CLI选项:“ - 个人资料”

发布于 2025-01-31 05:57:19 字数 417 浏览 3 评论 0原文

我正在尝试通过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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

北斗星光 2025-02-07 05:57:19

使用属性- 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文