Comments (7)
@skhaz https://www.serverless.com/framework/docs/guides/upgrading-v4
from serverless.
Your shouldn't need to login before deploying when using an access key.
Thnx, this was the problem :)
First i read this:
You must sign in or use a license key with Serverless Framework V.4 and later versions. Please use "serverless login".
So i added the serverless login
(because i dont have a license key)
Then i read:
You can authenticate via Access Key by signing in to Serverless Framework Dashboard when prompted by the CLI or running serverless login. [...] create a new Access Key for CI/CD use, and save it as the SERVERLESS_ACCESS_KEY environment variable in your CI/CD pipeline.
So i added the SERVERLESS_ACCESS_KEY
, but didn't realize the serverless login
is for interactive login ONLY, and either an access key OR license key can be used with the serverless deploy
command
Now i'm stuck at the following:
Error: Resolver provider bref is not supported
For now i think its best for me to lock to v3: brefphp/bref#1815
from serverless.
@Jimbolino It looks like the original issue was fixed, and now the second issue you reported here regarding the provider
is also fixed as of this release
from serverless.
This is documented in the upgrading guide.
from serverless.
how to debug if it does not work?
deploy.sh:
env | grep SERVERLESS_ACCESS_KEY
npx serverless login
npx serverless deploy
log output:
SERVERLESS_ACCESS_KEY=***
✖ Unable to login in non-interactive mode. Please use a license key or access key, both of which you can get from the Serverless Framework Dashboard: https://app.serverless.com
Error: Unable to login in non-interactive mode. Please use a license key or access key, both of which you can get from the Serverless Framework Dashboard: https://app.serverless.com
at authenticate (file:///home/runner/.serverless/releases/4.0.26/package/dist/sf-core.js:709:229[67](https://github.com/Jimbolino/www.troep.com/actions/runs/9227078770/job/25388255823#step:15:68))
at commandLogin (file:///home/runner/.serverless/releases/4.0.26/package/dist/sf-core.js:947:8446)
at file:///home/runner/.serverless/releases/4.0.26/package/dist/sf-core.js:1006:5782
at CommandInstance.applyBuilderUpdateUsageAndParse (file:///home/runner/.serverless/releases/4.0.26/package/dist/sf-core.js:881:38830)
at CommandInstance.runCommand (file:///home/runner/.serverless/releases/4.0.26/package/dist/sf-core.js:881:38064)
at [runYargsParserAndExecuteCommands] (file:///home/runner/.serverless/releases/4.0.26/package/dist/sf-core.js:939:16037)
at YargsInstance.parse (file:///home/runner/.serverless/releases/4.0.26/package/dist/sf-core.js:937:2537)
at run3 (file:///home/runner/.serverless/releases/4.0.26/package/dist/sf-core.js:1006:7625)
at file:///home/runner/.serverless/releases/4.0.26/package/dist/sf-core.js:1006:7892
at ModuleJob.run (node:internal/modules/esm/module_job:222:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:123:5)
For help, try the following:
• Run the command again with the "--debug" option
• Run "serverless support"
• Review the docs: https://www.serverless.com/framework/docs/
from serverless.
@Jimbolino Can you try running again using the --debug
flag?
from serverless.
Your shouldn't need to login before deploying when using an access key.
from serverless.
Related Issues (20)
- Custom resource deployment hangs forever HOT 4
- Show helpful errors when the build type (e.g. `esbuild`) is missing in the `build` section
- `sls info -v` not showing stack outputs HOT 2
- Cannot parse 'serverless.ts' after upgrading to v4 HOT 4
- Missing Package @serverlessinc/sf-core HOT 1
- V4.1.0: Error fetching release: EACCES: permission denied, open /usr/local/lib/node_modules/serverless/node_modules/.bin/serverless-darwin-amd64-0.0.2 HOT 3
- Serverless 4.x doesn't seem to update or work HOT 7
- sls deploy issue HOT 1
- Make inputTransformers and inputPath available when CfnRule target is event bus HOT 1
- No forceInclude equivalent in the new build.esbuild configuration HOT 7
- Invalid option in build call buildConcurrency HOT 1
- Parsing issue around build.esbuild.exclude and build.esbuild.external HOT 1
- Dev command does not work when custom IAM role set HOT 2
- AWS SSO doesn't seem to work with SERVERLESS_LICENSE_KEY HOT 2
- [windows][v4] serverless invoke local is failing to load handlers HOT 1
- Params top-level property is not loading when defined in a file HOT 1
- Detected unrecognized CLI options: "--d".
- V4: serverless dev command does not work in eu-south-1 region.
- V4: .env variables do not work in serverles.yml
- V4: Default deploymentMethod 'direct' or 'changesets'
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.