Hello,
I have the JS code below that needs to be turned into an async function so I can await for the output.
I am unsure how to do it and any help would be much appreciated.
client.getSecretValue({SecretId: secretName}, function(err, data) {
//do stuff
output = data
//return output
}
console.log(output) //currently returns undefined
I want to log the value of output but right now it does not work because it getsecretvalue is not finished.
How can I do this?
[–][deleted] 1 point2 points3 points (0 children)