Giter Site home page Giter Site logo

Comments (4)

eahefnawy avatar eahefnawy commented on July 30, 2024

Hi @feelxtesting thank you for reporting. Please note that the serverless config credentials command is now deprecated in v4. You can now just use the root serverless command to get completely set up.

I do understand that the error message should make that clear. I am not sure why you're getting that error message. When I run the full command you provided I get the expected error message:

sf4 config credentials --provider aws --profile staging-admin --key $AWS_ACCESS_KEY_ID --secret $AWS_SECRET_ACCESS_KEY                  

✖ The "config credentials" command was deprecated in v4. To configure your AWS credentials, run the "serverless" command instead.

Could you tell me a bit more about your environment? Windows or MacOS? Are running within a Serverless service directory?

from serverless.

austencollins avatar austencollins commented on July 30, 2024

Hi @feelxtesting, if you're running in Code Pipeline, that error you ran into might be concealing the actual error from Serverless Framework which informs users that this command is not available in V4. If you are running in Code Pipeline, you shouldn't need to run config credentials if your AWS Access Keys are set as environment variables. The Framework should pick these up automatically. In short, you should be able to immediately deploy.

from serverless.

feelxtesting avatar feelxtesting commented on July 30, 2024

Hi @feelxtesting, if you're running in Code Pipeline, that error you ran into might be concealing the actual error from Serverless Framework which informs users that this command is not available in V4. If you are running in Code Pipeline, you shouldn't need to run config credentials if your AWS Access Keys are set as environment variables. The Framework should pick these up automatically. In short, you should be able to immediately deploy.

i'll test this and get back to you with results

from serverless.

feelxtesting avatar feelxtesting commented on July 30, 2024

Hi @feelxtesting, if you're running in Code Pipeline, that error you ran into might be concealing the actual error from Serverless Framework which informs users that this command is not available in V4. If you are running in Code Pipeline, you shouldn't need to run config credentials if your AWS Access Keys are set as environment variables. The Framework should pick these up automatically. In short, you should be able to immediately deploy.

i tested but didn't work.

from serverless.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.