'Detected unrecognized CLI options: "--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 !!

Solution 1:[1]
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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | semenchikus |