serverless-env-generator
Advanced tools
Comparing version 1.1.0 to 1.1.2
{ | ||
"name": "serverless-env-generator", | ||
"version": "1.1.0", | ||
"version": "1.1.2", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=6.0" |
@@ -8,4 +8,7 @@ Serverless Env Generator Plugin | ||
Key features: | ||
For a brief introduction, read our blogpost about [introducing serverless-env-generator](http://www.dieproduktmacher.com/introducing-serverless-env-generator/). | ||
### Key features: | ||
- Support for multi-stage configurations and custom profiles | ||
@@ -18,2 +21,5 @@ - Value of environment variables can be encrypted with AWS KMS, allowing teams to manage sensitive information in git. | ||
### Notes | ||
Please note that the uploaded *.env* file contains secrets in cleartext. Therefore we recommend to use [Serverless Crypt](https://github.com/marcy-terui/serverless-crypt) for critical secrets. This tool aims to strike a balance between storing secrets in plaintext in Lambda environment variables and having to decrypt them at runtime using KMS. | ||
@@ -26,3 +32,3 @@ | ||
This package requires node >= 6.0. | ||
Encryption is only supported for AWS due to the reliance on KMS. | ||
Due to the reliance on KMS, encryption is only supported for AWS. | ||
@@ -29,0 +35,0 @@ |
@@ -7,3 +7,3 @@ 'use strict' | ||
class ServerlessPlugin { | ||
class ServerlessEnvGeneratorPlugin { | ||
constructor (serverless, options) { | ||
@@ -120,2 +120,2 @@ this.serverless = serverless | ||
module.exports = ServerlessPlugin | ||
module.exports = ServerlessEnvGeneratorPlugin |
@@ -28,3 +28,3 @@ 'use strict' | ||
return new Promise((resolve, reject) => { | ||
getKms(config).encrypt({ Plaintext: text }, (error, data) => { | ||
getKms(config).encrypt({ Plaintext: String(text) }, (error, data) => { | ||
if (error) { | ||
@@ -31,0 +31,0 @@ reject(error) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45663
279