ibm-cloudopenwhiskibm-cloud-functions

Are there common "environment" variables in IBM Cloud functions (actions)?


I am writing a number of actions (IBM Cloud functions,) which share a couple of the same parameters, e.g. the IAMAuthenticator or the database path. Is there a way to set these as some kind of environmental variables common to several functions?


Solution

  • You can make use of packages and bind those variables to a package. All actions in a package kind of share the same setup. It is a way of organizing and simplifying deployment.