Skip to content

Commit

Permalink
Updated documentation to use preferred methods
Browse files Browse the repository at this point in the history
  • Loading branch information
manthanhd committed Nov 8, 2017
1 parent 4bae38e commit 9c9c25b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -17,7 +17,7 @@ var options = {
s3Location: 's3://mybucket/mysecret',
kmsKeyId: 'my-kms-key-id/arn/alias'
};
secretsManager.upload(options)
secretsManager.set(options)
.then(function (ciphertextBuffer) {
// Upload and encryption was successful
// ciphertextBuffer as Buffer object
Expand All @@ -35,7 +35,7 @@ Access encrypted secret stored on S3
const SecretsManager = require("aws-secrets-manager");
const secretsManager = new SecretsManager();

secretsManager.resolve("s3://mybucket/myfolder/mysecret")
secretsManager.get("s3://mybucket/myfolder/mysecret")
.then(function (ciphertext) {
// Download and decryption was successful
// ciphertext as Buffer object
Expand Down

0 comments on commit 9c9c25b

Please sign in to comment.