Comments (5)
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.
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.
@kdybicz Thanks for reporting. We'll look into this.
from serverless.
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.
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)
- Unable to Disable esbuild in Serverless 4.1.11 HOT 6
- Unable to bundle @aws-sdk in v4 HOT 4
- Recoverable error occurred (Socket connection timeout)
- [V4] Dev mode: handler not found in service directory HOT 1
- Unable to Enable "Helpers for Encryption in Transit" for Environment Variables in Python Lambda
- Serverless4 with Typescript Support No Longer Automatically Verifies Typescript Compilation HOT 2
- Cross account security group rule id erroring as invalid HOT 1
- Outage: Version 4.1.13 Breaking Changes (Deployments + Building) HOT 32
- V4 - Version Pinning HOT 1
- Keys cannot contain Serverless Variables - How to deal?
- After upgrading to v.4 max-concurrency flag fails the deployment
- Nested variable reference throws error when inserted into a reference to SSM parameter store HOT 3
- Unable to remove License Key HOT 2
- Lack of visibility on how Credits are being used
- Installing plugins HOT 3
- Installing plugins ignores yarn and uses npm instead HOT 1
- Documentation links not working correctly HOT 2
- s3 event with existing: true combined with bucket resource definition causes serverless remove to fail due to race condition
- CLI options definitions were upgraded with "type" property (which could be one of "string", "boolean", "multiple")
- [V4] Typescript with ESM support HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serverless.