You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
support environment variables for action create/update/invoke #83
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.
Activity
rabbah commentedon Dec 3, 2019
cc @tysonnorris
--env/-ewas your idea 😉adobe-bot commentedon Jan 13, 2020
JIRA issue created: https://jira.corp.adobe.com/browse/ACNA-631
rabbah commentedon Feb 12, 2020
PR was merged this can be closed. Follow on in #116.