Skip to content

support environment variables for action create/update/invoke #83

Closed

Description

@rabbah

Is your feature request related to a problem? Please describe.
Does AIO support parameters as environment variables? These are parameters which are declared as "init" time parameters in the REST API call.

Describe the solution you'd like
Environment parameters unlike regular parameters in OpenWhisk are provided at init time only. In the REST API they carry at special designation. If AIO supports environment parameters, then adding support to the CLI for specifying them would be helpful.

wsk action create hello --env NAME world

for example where --env (or -e) for short adds a parameter designated as init time (available in process.env at initialization time).

The cli can treat as error whether there are conflicting parameters specified:

-p NAME foo -e NAME bar

the CLI can reject this or define a precedence order (environment parameters trump others for example).

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
A quick prototype is available here rabbah@651602f as a proof of concept.

If this is desirable, I can PR it.

Activity

  1. rabbah commented on Dec 3, 2019

    @rabbah
    ContributorAuthor

    cc @tysonnorris --env/-e was your idea 😉

  2. added
    enhancement
    on Jan 13, 2020
  3. adobe-bot commented on Jan 13, 2020

    @adobe-bot
  4. rabbah commented on Feb 12, 2020

    @rabbah
    ContributorAuthor

    PR was merged this can be closed. Follow on in #116.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions