Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment variable not available in action name #1145

Open
ryutoyasugi opened this issue Oct 12, 2021 · 0 comments
Open

Environment variable not available in action name #1145

ryutoyasugi opened this issue Oct 12, 2021 · 0 comments

Comments

@ryutoyasugi
Copy link

$ cat manifest.yaml
packages:
  default:
    actions:
      ${ACTION_NAME}:
        function: index.js
        runtime: nodejs
    triggers:
      ${TRIGGER_NAME}:
        feed: /whisk.system/alarms/alarm
    rules:
      ${RULE_NAME}:
        action: ${ACTION_NAME}
        trigger: ${TRIGGER_NAME}

$ export ACTION_NAME=hello
$ export TRIGGER_NAME=alarm
$ export RULE_NAME=hello-alarm

$ wskdeploy --preview
Packages:
Name: default
    bindings:
    annotation:

  * action: ${ACTION_NAME}
    bindings:
    annotation:


Triggers:
* trigger: alarm
    bindings:
    annotation:
        - feed : /whisk.system/alarms/alarm

Rules
* rule: hello-alarm
    annotation:
    - trigger: alarm
    - action: hello
ryutoyasugi added a commit to ryutoyasugi/openwhisk-wskdeploy that referenced this issue Oct 12, 2021
ryutoyasugi added a commit to ryutoyasugi/openwhisk-wskdeploy that referenced this issue Oct 12, 2021
ryutoyasugi added a commit to ryutoyasugi/openwhisk-wskdeploy that referenced this issue Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant