I am trying to migrate from my credentials and secrets to AWS Secrets Manager in my Express Project.
The current structure has a config.json file which loads in sync when the express app.
But when I try to fetch credentials from AWS API, the flow won't work. Because in my previous approach, files are getting loaded in sync, therefore, all credentials are available when the app is starting but same is not possible when credentials are getting fetched from AWS API.
I want to understand what is the ideal method to work with any secret manager where API call is required in Express/Node Projects for fetching credentials.