Skip to content

Environment variables are not resolved same way for remote and local invocations #7087

Description

@master-of-null

Bug Report

Description

Given:

  environment:
    events_store_table:
      Ref: EventsStoreEncryptedDynamoDBTable

When invoking a function locally sls invoke local ..., which makes a dynamoDB API call with TableName referencing process.env.events_store_table the following error occurs:

1 validation error detected: Value '[object Object]' at 'tableName' failed to satisfy constraint: Member must satisfy regular expression pattern: [a-zA-Z0-9_.-]+\

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions