Skip to content

Update docs with variables.yml and stage #75

@raymondbutcher

Description

@raymondbutcher

This line of code:

self.custom = YamlOrderedDict(vars="${file(./variables.yml):${sls:stage}}", **(custom or {}))

Makes it necessary to have a variables.yml file and pass in --stage when running serverless. You'll get errors if they are missing.

It would be good to mention these requirements in the Getting started docs.

Alternatively/additionally it could check for the existence of that file and skip it when it doesn't exist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions