skip to Main Content

I am deploying an Express.js application using the Serverless framework on AWS, but the command below is giving an error

Command :

$serverless config credentilas –provider aws –key XXXXXX –secret
XXXXXXX

Operating system: Windows 11

I tried to run the above command through the power shell with administrator privilege.

enter image description here

2

Answers


  1. I got the same error message when I tried to use Serverless ϟ Framework 4.3.2. When I downgrade to version 3.39.0 it worked fine.

    npm i [email protected] -g
    

    As part of the License changes, Serverless Framework Version 4 may contains breaking changes and disruptions for existing Services using the aws provider.

    Read more at https://www.serverless.com/framework/docs/guides/upgrading-v4

    Login or Signup to reply.
  2. The best alternative would be to do the following:
    type serverless in your terminal and press enter. It will guide you through the process. choose your runtime /framework and continue. give it a name or choose one you created on Serverless Dashboard. Then it will ask about your credentials whether to save on local profile. I use local profile. then paste your credentials and all done. Hope it makes sense.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search