I'm trying to obtain async configurations for my application (I need to make calls to Amazon Secrete Manager to obtain certain configs for security reasons).
I'm attempting to get node-config to utilize an async function that returns a promise. I modified my config to a .js file and am utilizing the "asyncConfig" method available on node-config with no luck Link to Node-Config Raw:
I'm trying to obtain async configurations for my application (I need to make calls to Amazon Secrete Manager to obtain certain configs for security reasons).
I'm attempting to get node-config to utilize an async function that returns a promise. I modified my config to a .js file and am utilizing the "asyncConfig" method available on node-config with no luck Link to Node-Config Raw:
Any idea? Or possibly any better ways to do this?
Config File and error below:
error:
output:
{ async: Symbol(asyncSymbol), prepare: [Function (anonymous)], release: [Function (anonymous)] }