Skip to content

Regex pattern with if condition not working as expected #29

@iamyogeshg

Description

@iamyogeshg

Hi there,

My requirement is to exclude a certain function from all stages where stage name does not end with shrd. I am doing it in the way as shown below. Using version 1.0.7 and node version is 12.22.1.

serverlessIfElse:
      - If: '"${self:custom.stage}" != "(*shrd)"'
        Exclude:
          - functions.LogArchiver

What's happening is that even in stage matching with "*shrd" pattern, plugin is excluding that function. Please advise.

Thanks
Yogesh

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