cube-js/cube
在 GitHub 查看Deprecation warning from Serverless Variables Resolver when deploying to GCP using serverless template
Open
#2,634 建立於 2021年4月29日
backend:serverless-gcpgood first issuehelp wanted
倉庫指標
- Star
- (19,563 star)
- PR 合併指標
- (平均合併 5天 16小時) (30 天內合併 138 個 PR)
描述
Describe the bug
Serverless: Deprecation warning: Variables resolver reports following resolution errors:
- Cannot resolve variable at "provider.environment.CUBEJS_APP": Value not found at "self" source,
- Cannot resolve variable at "functions.cubejsProcess.events.0.event.resource": Value not found at "self" source
From a next major this will be communicated with a thrown error.
Set "variablesResolutionMode: 20210326" in your service config, to adapt to new behavior now
More Info: https://www.serverless.com/framework/docs/deprecations/#NEW_VARIABLES_RESOLVER
To Reproduce Steps to reproduce the behavior:
- npm install -g serverless
- npx cubejs-cli create -d bigquery -t serverless-google
- serverless deploy -v
- See warnings
Expected behavior Should use self variable fine
Version: 0.27