Closed scotty-p closed 8 years ago
Great catch. You found a bug, I will get a patch out today. In the meantime, here is a fix.
Serverless: Please specify a kms key arn with --arn or set a default kms key in project custom configs.
You can also set shortcuts and use --arn prod to access the prod arn shown below.
"custom": {
"secrets": {
"kms": {
"default": "arn:aws:kms:us-east-1:123456789012:alias/MyAliasName",
"prod": "arn:aws:kms:us-east-1:123456789012:alias/ProdAliasName"
}
}
}
@scotty-p This has been fixed in the 2.0.1 release. npm update serverless-secrets
I've tried a bunch of inputs to get this to work, but so far unsuccessful. My IAM user has kms:Encrypt and kms:Decrypt permissions for the particular key-arn. Posting command and error stack.
sls secret encrypt -r us-east-1 -p kms -t "Hello world" -a <key-arn>