Avatar

Correct answer by
Employee

Hi @Urs_Boller, here are answers relevant to your questions.

Answer 1: It is not possible to deploy an alarmed trigger in `--local` mode, because the alarms provider and packages are not deployed in your local openwhisk. You have to deploy it on I/O Runtime (without `--local`).

Answer 2: I tried the same setup as yours and it seems to work for me. The only difference is, I set the `require-adobe-auth` flag to false and removed `web: yes`, because the alarm is not able to provider a token as a web request. That way the action is still secure and can only be triggered by the alarm, not an external entity.

 

 

packages:
  __APP_PACKAGE__:
    license: Apache-2.0
    actions:
      generic:
        function: actions/generic/index.js
        runtime: 'nodejs:12'
        inputs:
          LOG_LEVEL: debug
        annotations:
          require-adobe-auth: false
          final: true
    triggers:
      testInterval:
        feed: /whisk.system/alarms/interval
        inputs: 
          minutes: 1
    rules:
      testIntervalRule:
        trigger: testInterval
        action: generic

 

View solution in original post