I have having a spring boot dockerize application running inside fargate cluster.This is application uses aurora DB. I want to store DB password and API key in AWS Secret Manager.My idea was to make a API from Application and fetch the secret from secret maneger. But architect is saying this is not best approach.
What would be other better ways to achieve this ?