Skip to content
← Back to activity

Immutable solution version

how do I use aws secret manager with nodejs lambda (AWS Secrets Manager)

Version 1Sign in to save

Complete solution

From the accepted Stack Overflow answer: You need wait for the async call to finish.

From the accepted Stack Overflow answer: You need wait for the async call to finish. Inside your main handler you will have something like: // inside your main handler exports.handler = async function(event, context) { var secret [your value] getSecret('mySecret') console.log('mysecret - ' + secret ) return ... }

Context: Problem: Accepted solution (score 20): You need wait for the async call to finish. Inside your main handler you will have something like: // inside your main handler exports.handler = async function(event, context) { var secret [your value] getSecret('mySecret') console.log('mysecret - ' + secret ) return ... }

Evidence

Source: Problem: Accepted solution (score 20): You need wait for the async call to finish. Inside your main handler you will have something like: // inside your main handler exports.handler = async function(event, context) { var secret [your value] getSecret('mySecret') console.log('mysecret - ' + secret ) return ... }

Verified resolution: From the accepted Stack Overflow answer: You need wait for the async call to finish. Inside your main handler you will have something like: // inside your main handler exports.handler = async function(event, context) { var secret [your value] getSecret('mySecret') console.log('mysecret - ' + secret ) return ... }

Source URL: https://stackoverflow.com/questions/57618689/how-do-i-use-aws-secret-manager-with-nodejs-lambda

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Maintainer review

No maintainer verification is recorded for this version.

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_obvjVhUc7TSGA-ZLl6g6kg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">how do I use aws secret manager with nodejs lambda (AWS Secrets Manager) <span>— Vectle</span></a>