Skip to content

CF module should use the lambda's region as default #3

Description

@HyperBrain

Currently the CF integration uses the SERVERLESS_REGION variable that is not set by default. That means that you have to set it manually for each region.
As most users would use the lambda context's region it would be better to set this as default. Then serverless' environment variables would stay clean. Technically the lambda region can be retrieved from the AWS SDK.
An optional parameter could be added to CF.loadVars() to cover the remaining corner cases where you do not want to use the default.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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