You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/03/06 18:22:32 UTC

[GitHub] pritidesai opened a new issue #769: Update Spec - Env. Variable Interpolation in JSON Inputs

pritidesai opened a new issue #769: Update Spec - Env. Variable Interpolation in JSON Inputs
URL: https://github.com/apache/incubator-openwhisk-wskdeploy/issues/769
 
 
   With a recent PR #766, we are adding support to interpolate input values with 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:
users@infra.apache.org


With regards,
Apache Git Services