I am going to explain how to use the AWS secrets manager in AWS Lambda under Node JS container. This blog can be helpful for general Javascript pro...
For further actions, you may consider blocking this person and/or reporting abuse
Can't we use access manager without importing it from sdk ?
To connect any AWS resource need SDK.
thanks. I am thinking in a way that lambda is a part of aws and we are calling another resource from the lambda, so there may be any a way of doing without importing aws sdk.
Any resource you use in Lambda code you need SDK or library which called as programmatic way to talk to each other. But Lambda source and destination way can just listen or publish data to particular service which listed as source and destination.
Really well written, Avinash.
Thanks Ajinkya.
Thank you Avinash for the code snippet and explanation
I hope it will help you. You can reach out to me if any query.
Hello Avinash,
I am trying to test your code from Lambda test tab and I'm getting undefined as result on console.log(apiValue);
Maybe you could help me.
Thank you!
Drop message on twitter handle @avinashdalvi_ will checkout code.
You probably copy pasted the code snippet.
your config object should be something like this:
const config = {
region: region,
credentials: {
accessKeyId: process.env.ACCESS_KEY_ID,
secretAccessKey: process.env.SECRET_ACCESS_KEY,
},
}
?Really? We have to use a secret to get access to the secrets manager? Does that not nullify the entire point of using the secrets manager in the first place??...