pritidesai opened a new issue #770: Doc - Env. Variable Interpolation in JSON 
Inputs
URL: https://github.com/apache/incubator-openwhisk-wskdeploy/issues/770
 
 
   With a recent PR #766, we are adding support to interpolate input values 
using env. variables such that:
   
   ```
   os.SetEnv("USERNAME", "MY_USERNAME")
   os.SetEnv("PASSWORD", "MY_PASSWORD")
   ```
   
   manifest.yaml:
   
   ```
   inputs:
      type: json
      GitHub_credentials: {
        username: ${USERNAME},
        password: ${PASSWORD}
      }
   ```
   
   Action is composed with `username` set to `MY_USERNAME ` and `password` set 
to `MY_PASSWORD`.
   
   With manifest.yaml:
   
   ```
   inputs:
      type: json
      GitHub_credentials: {
        username: $${USERNAME},
        password: $${PASSWORD}
      }
   ```
   
   Action is composed with `username` set to `${USERNAME} ` and `password` set 
to `${PASSWORD}` escaping interpolation with double dollar sign, following 
terraform syntax at 
https://www.terraform.io/docs/configuration/interpolation.html.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to