Skip to content

Can Plugin Set custom Variables? #35

@rpattcorner

Description

@rpattcorner

Been experimenting, and it looks like this most useful plugin can target a section of serverless.yml like a provider, but cannot set the value of a custom variable, e.g.

serverlessIfElse:
    - If: '"${self:custom.somevalue}" == "true"'
      Set: 
        self:custom.targetValue: somevalue
      ElseSet:
         self:custom.targetValue: someOthervalue

Tried a few syntactic variants with $ and brackets, without effect

Is it indeed not possible to set a conditional custom variable this way?
Works great targeting a provider, though :)

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