Skip to content

Custom stackName in next serverless version that will brake this plugin. #15

Description

@egut

In serverless version above 1.27.3 one can set a custom stackName.

provider:
   stackName: my-custom-name

In main serverless they are using this getStackName from this code to fetch the stackname:
https://github.com/serverless/serverless/blob/cbc5e3c4e199a08650b02def8d1f9e91a13e7844/lib/plugins/aws/lib/naming.js

Used as in serverless, if you get the this reference correct you are done:

const stackname = this.provider.naming.getStackName();

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions