Skip to content

Instantly share code, notes, and snippets.

View JesusAndres2's full-sized avatar

Yisuscript JesusAndres2

View GitHub Profile
const AWS = require('aws-sdk');
const client = new AWS.SecretsManager({});
// Call the AWS API and return a Promise
function getAwsSecret(secretName) {
return client.getSecretValue({ SecretId: secretName }).promise();
}
// Create a async function to use the Promise