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

Cannot resolve variable Deprecation warnings with serverless 2.25.1 #16

@mobsense

Description

@mobsense

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions