Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Started Instructions Failing #13

Open
hammadzz opened this issue Nov 4, 2017 · 1 comment
Open

Getting Started Instructions Failing #13

hammadzz opened this issue Nov 4, 2017 · 1 comment

Comments

@hammadzz
Copy link

hammadzz commented Nov 4, 2017

Setup as in instructions (serverless-kms-secrets v1.0.2) yet it fails when trying to encrypt a key

Added to my serverless.yml

custom:
  serverless-kms-secrets:
    secretsFile: kms-secrets.${opt:stage, self:provider.stage}.${opt:region, self:provider.region}.yml
  kmsSecrets: ${file(kms-secrets.${opt:stage, self:provider.stage}.${opt:region, self:provider.region}.yml)}

Ran this command

serverless encrypt -n SECRETS:MY_SECRET -v [my_secret] -k [my_key_id]

The error I see:

 ENOENT: no such file or directory, lstat '/Users/[MyUser]/Documents/[myproject]/kms-secrets.dev.us-east-1.yml'
@hammadzz
Copy link
Author

hammadzz commented Nov 4, 2017

Removing kmsSecrets under custom in server less.yml, then running the encrypt command works. After the secrets yml file is created you can now add kmsSecerets under custom.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant