Secure the application or DB passwords in AWS

How do we secure the application or DB passwords in AWS instead of hard coding the passwords in GIT repository for deployment?