I recently set up an application and stored my PostgreSQL database credentials in AWS Secrets Manager. Now, I'm trying to figure out how to reference these secrets correctly within my Elastic Beanstalk application environment properties. Specifically, I'm having trouble using their ARNs for configuration. Any advice on how to set this up properly would be greatly appreciated!
2 Answers
As of March 31, 2025, Elastic Beanstalk has integrated support for Secrets Manager, which should help manage secrets more easily. You can check out the AWS announcement for more details. It's a lot simpler now than before!
Are you planning to rename your secrets frequently? I usually follow a naming pattern like `/appName/environment/paramName`. This way, during app startup, it can automatically determine the database hostname based on the environment. Just a thought!

I tried this method, but it didn’t work out as expected. Can you confirm it's supposed to work this way? I change my database password regularly for security.