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)
- Serverless [email protected] InitializingFailed HOT 5
- Bitbucket Serverless Not deploying
- Code splitting with serverless build doesn't really work HOT 3
- Error: Internal Server Error at Authentication.getClientDataFromAccessKey HOT 4
- MFA is not working with sls offline HOT 4
- Failed to construct URL with https://ssm.${param:region}.amazonaws.com TypeError: Invalid URL HOT 4
- Feature Request: AWS DynamoDB Accelerator (DAX) Support in Serverless Framework
- Allow Serverless Dev to work with Apollo Server AWS_PROXY integration. HOT 1
- AWS Lambda Python 3.9 and above
- Local invoke tries to pull images that are no longer supported. Swap to pulling from aws images insteadof lambci.
- "EMFILE: too many open files" while running serverless deploy on Windows HOT 4
- Build override package Pattern V4 HOT 4
- Serverless V4 esbuild not including files that are not mentioned in the serverless config like utils and helper files HOT 3
- v4 opt:region var default value not resolved on deploy HOT 5
- Temporary artifact source name collision HOT 3
- [V4] Parameters defined in global stages property not loading when used in custom property HOT 3
- env files not loading based on the stage HOT 3
- Serverless V4 `npm i` is not working after following CONTRIBUTING.md HOT 4
- Serverless V4 fails to resolve default when parameter is not found HOT 9
- Cannot Deploy Lambda Functions as Containers in China AWS -- Image.uri does not match pattern regex
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.