Comments (3)
when i deleted the code "--param="division=${envDivision}"" , so that the deploy command is [serverless deploy --stage ${env}] then other error is happend. but when i use the same code in sls3, its successfully builded!!!
error message
Failed to resolve variable 'custom.${opt:stage' with resolver 'config' :ERROR :Key "custom.${opt:stage" is not defined in config file.
here is my whole code
buildspec.yml
serverless deploy --stage ${env}
#${env} is set with environment during AWS's Coodebuild . for example ,Dev is the value of env.
serverless.yml
provider:
name: test
runtime: dotnet6
region: XXX
environment: ${file(slsconf/serverless_environment.yml)}
custom:
${file(slsconf/serverless_custom${opt: stage, self: provider.stage}.yml)}
slsconf/serverless_environment.yml
TZ: XXX
EnvironmentVariable1: ${self: custom.${opt: stage, self: provider.stage}.EnvironmentVariable1Val}
EnvironmentVariable2: ${self: custom.${opt: stage, self: provider.stage}.EnvironmentVariable2Val}
slsconf/serverless_customDev.yml
EnvironmentVariable1Val: XXX
EnvironmentVariable2Val: XXX
from serverless.
same here, was working great on serverless3 but from today it doesn't work on sls4
it seems the fallback strategy is broken
custom:
is_async_task_enabled:
production: true
other: false
final_is_async_task_enabled: ${self:custom.is_async_task_enabled.${self:provider.stage}, self:custom.is_async_task_enabled.other}
gives
Error: Failed to resolve variable 'custom.is_async_task_enabled.eric' with resolver 'config' and provider 'self': Error: Key "custom.is_async_task_enabled.eric" is not defined in config file
at #resolveKey (file:///root/.serverless/releases/4.0.24/package/dist/sf-core.js:989:16542)
at _ResolverManager.resolve (file:///root/.serverless/releases/4.0.24/package/dist/sf-core.js:989:21362)
at #handlePlaceholderNode (file:///root/.serverless/releases/4.0.24/package/dist/sf-core.js:989:20310)
at file:///root/.serverless/releases/4.0.24/package/dist/sf-core.js:989:18471
at processNodeAndHandleCompletion (file:///root/.serverless/releases/4.0.24/package/dist/sf-core.js:989:137[27](https://gitlab.com/easygy/main/app/-/jobs/6920730129#L27))
at processNodeAndManagePromise (file:///root/.serverless/releases/4.0.24/package/dist/sf-core.js:989:14363)
at file:///root/.serverless/releases/4.0.24/package/dist/sf-core.js:989:14180
at Array.forEach (<anonymous>)
at processSinks (file:///root/.serverless/releases/4.0.24/package/dist/sf-core.js:989:14135)
at processGraphInParallel (file:///root/.serverless/releases/4.0.24/package/dist/sf-core.js:989:13978)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async #resolveAndReplacePlaceholders (file:///root/.serverless/releases/4.0.24/package/dist/sf-core.js:989:18188)
at async _ResolverManager.resolveAndReplacePlaceholdersInConfig (file:///root/.serverless/releases/4.0.24/package/dist/sf-core.js:989:17913)
at async Object.resolveServiceConfig (file:///root/.serverless/releases/4.0.24/package/dist/sf-core.js:989:[28](https://gitlab.com/easygy/main/app/-/jobs/6920730129#L28)507)
at async file:///root/.serverless/releases/4.0.24/package/dist/sf-core.js:992:1209
at async route (file:///root/.serverless/releases/4.0.24/package/dist/sf-core.js:992:1182)```
from serverless.
@yeyeric
maybe this error is fixed in 4.0.30,but another error is happened.
from serverless.
Related Issues (20)
- serverless config credentials HOT 4
- V4 - Include original error message after our custom error messages when resolving AWS Credentials HOT 1
- V4: Unrecognized command “plugin install” v4.0.26 HOT 6
- Serverless4: Using esbuild's "packages: external" flag doesn't seem to work HOT 3
- Serverless4: Unable to Ensure that the Prisma libquery Engine and schema.prisma are Included in my Bundle HOT 7
- Support MFA Prompt when using an AWS Profile
- V4 progress spinner conflicts with plugins HOT 1
- Error: Cannot find module 'serverless/lib/serverless-error' While installing the appsync plugin HOT 2
- Dev Mode instruments all functions across multiple services if run in parent folder
- Ensure Bref works with Serverless Framework V.4 HOT 1
- Ensure Lift works with Serverless Framework V.4 HOT 7
- v3: Error: Cannot use 'publicReadAccess' property on a bucket without allowing bucket-level public access through 'blockPublicAceess' property. HOT 2
- Resolvers error regarding `replace`
- Serverless V4 deployment Error HOT 2
- Serverless command "offline" not found
- Unable to set `maximumConcurrency` on `events.sqs`
- Dev Mode does not close on the first CTRL+C
- Dev Mode occassionally misses prefixed and colored hyphen
- Documentation is not updated about the v3 HOT 1
- Encountering "Internal Serverless Error" in commands
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.