constvault=require('@teamsnap/vault-key')constsecrets=['secret-engine/data/secret-name','secret-engine-2/data/another-secret-name']constsecretData=vault.getSecrets(secrets)console.log('Secret values:',JSON.stringify(secretData,null,4))console.log(`secret-key value = ${secretData['secret-engine/data/secret-name']['secret-key']}`)console.log(`secret-key-2 value = ${secretData['secret-engine-2/data/another-secret-name']['secret-key-2']}`)
Environment Variable Configuration
Environment Variable
Default
Required (GCP)
Required (other environments)
Example
Description
ENVIRONMENT
"development"
No
No
production
If set to anything but production, prints trace level logs