- Newest
- Most votes
- Most comments
Hello Andres,
You have a Node.js application deployed on EKS, which connects to an RDS instance using credentials stored in AWS Secrets Manager. The issue is that when your RDS credentials rotate, your pods are not automatically updated, leading to database access failures.
So, here is the Possible solution: AWS Identity and Access Management (IAM) authentication allows applications to connect to an Amazon RDS database using temporary authentication tokens instead of storing static database credentials in AWS Secrets Manager or environment variables.
EKS Pod Uses IAM Role – The Kubernetes service account is linked to an IAM role with the necessary permissions.
App Requests Temporary Token – The application calls AWS STS (Security Token Service) to get a temporary authentication token.
App Connects to RDS – The application uses this IAM token instead of a password to establish a connection with RDS.
**Token Expires **– The IAM authentication token is valid for 15 minutes, after which the app must request a new token.
Thanks, Mahaboob.
