anantab / serverless-plugin-ifelse

A Serverless Plugin to write If Else conditions in serverless YAML file
69 stars 21 forks source link

Would this plugin work alongside serverless-offline? #6

Closed diegoaguilar closed 5 years ago

diegoaguilar commented 5 years ago

I got the following serverlessIfElse definition:

  serverlessIfElse:
    - ExcludeIf: 
        functions.post.environment.RENDERED_CONTENTFUL_ENTRY_TOPIC_ARN: '"${self:provider.stage}" == "development"'

I made sure that provider.stage is set to development is set to 'development'.

However, when running server, I can notice:

In a few words, this plugin has no effect when serverless online is running. I made a test with serverless deploy and I could see it having effect.

Any opinions?

anantab commented 5 years ago

Please make sure you include serverless-plugin-ifelse before serverless-offline plugin under plugins.

plugins:
  - serverless-plugin-ifelse
  - serverless-offline