Optional Triggers for events

I want to optionally enable a trigger via a CLI option. I thought this would work, but apparently they are enabled anyway:

enabled: ${opt:enableTrigger, 'false'}

It’s probably because ‘false’ is between single quotes, but removing them doesn’t work. I was wondering if there is another way to implement this behaviour. We have triggers that run every minute, but I don’t want that behaviour in DEV, unless we explicitly deploy it that way.

Any thoughts?

I should’ve waited 5 minutes, because all of a sudden I had an epiphany.

In the provider section, I configured the following variable:

provider:
  ...
  triggerEnabled: false
  ...

And in the event:

functions:
  func_name:
    events:
      - schedule:
          ...
          enabled: ${opt:enableTrigger, self:provider.triggerEnabled}
          ...