Skip to content
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.

Cannot resolve variable Deprecation warnings with serverless 2.25.1 #16

Open
mobsense opened this issue May 30, 2021 · 0 comments
Open

Comments

@mobsense
Copy link

I'm seeing lots of deprecation warnings like below with serverless 2.25.1.

The stack actually works and did not warn with earlier versions

The variables that are warning, are actually defined AFTER the plugin is processed. It seems that the new serverless version is
emitting the warnings before running the import-config plugin.

How can I suppress the warnings?

Serverless: Deprecation warning: Variables resolver reports following resolution errors:
              - Cannot resolve variable at "provider.environment.DB_TABLE": Value not found at "self" source,

My serverless.yml looks like this:

plugins:
- serverless-import-config-plugin

custom:
  import:
    - '../include/base.yml'

provider:
  name: aws

  environment:
    DB_TABLE: ${self:custom.tableName}

Here are my deps:

├── @babel/[email protected]
├── @babel/[email protected]
├── @babel/[email protected]
├── @babel/[email protected]
├── @babel/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant