Coder Social home page Coder Social logo

Comments (5)

czubocha avatar czubocha commented on July 28, 2024 1

Hey @kdybicz, thanks for sharing more details. I believe I know where the problem is. We’ll release the fix shortly and I’ll keep you updated.

from serverless.

kdybicz avatar kdybicz commented on July 28, 2024

We use the AWS SSO with AWS_PROFILE which might be not supported by SLS. When using AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY it works nicely. This makes our CI/CD work, but it breaks in the local dev environment.

from serverless.

austencollins avatar austencollins commented on July 28, 2024

@kdybicz Thanks for reporting. We'll look into this.

from serverless.

kdybicz avatar kdybicz commented on July 28, 2024

I was curious to see if 4.1.6 fixes things, but unfortunately that's not the case. I was trying to validate it with:

profile: ${env:AWS_PROFILE,'development'}

but I'm still getting:

▶ yarn serverless package
yarn run v1.22.19
$ /Users/kamil/project/node_modules/.bin/serverless package


✖ Failed to resolve variable '/development/project/some/key' with resolver 'ssm' and provider 'aws': ParameterNotFound: UnknownError
Error: Failed to resolve variable '/development/project/some/key' with resolver 'ssm' and provider 'aws': ParameterNotFound: UnknownError
    at #resolveKey (file:///Users/kamil/.serverless/releases/4.1.6/package/dist/sf-core.js:1085:43511)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async _ResolverManager.resolve (file:///Users/kamil/.serverless/releases/4.1.6/package/dist/sf-core.js:1085:48418)
    at async #handlePlaceholderNode (file:///Users/kamil/.serverless/releases/4.1.6/package/dist/sf-core.js:1085:47272)
    at async file:///Users/kamil/.serverless/releases/4.1.6/package/dist/sf-core.js:1085:45407
    at async processNodeAndHandleCompletion (file:///Users/kamil/.serverless/releases/4.1.6/package/dist/sf-core.js:1085:38403)

but... when I set the env inline:

▶ AWS_PROFILE=development yarn serverless package
yarn run v1.22.19
$ /Users/kamil/project/node_modules/.bin/serverless package

Packaging "project" for stage "development" (eu-west-1)

✔ Service packaged (2s)

✨  Done in 8.09s.

The same happens when I set it in the .env. I've also noticed that the inline takes precedence over what's in .env - though it might be worth noting.

from serverless.

czubocha avatar czubocha commented on July 28, 2024

Hi @kdybicz, we included a fix for resolving the AWS profile in the latest release, feel free to try this out now.

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.