Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 1.72 KB

File metadata and controls

41 lines (29 loc) · 1.72 KB

Amazon Secrets Manager JavaScript SDK v3 code examples

Amazon Secrets Manager helps you protect secrets needed to access your applications, services, and IT resources.

Code examples

This is a workspace where you can find the following AWS SDK for JavaScript version 3 (v3) Amazon Secrets Manager examples.

Note: All code examples are written in ECMAscript 6 (ES6). For guidelines on converting to CommonJS, see JavaScript ES6/CommonJS syntax.

Getting started

  1. Clone the AWS Code Samples repo to your local environment. See the Github documentation for instructions.

  2. Install the dependencies listed in the package.json.

Note: These dependencies include the client module for the AWS services that this example requires, which is the @aws-sdk/client-secrets-manager.

npm install node -g
cd javascriptv3/example_code/secrets 
npm install
  1. In your text editor, update user variables specified in the Inputs section of the sample file.

  2. Run sample code:

cd src
node [example name].js // For example, node secrets_getsecretvalue.js

Resources