- Newest
- Most votes
- Most comments
When you're experiencing "PAM authentication failed" errors with IAM authentication to your RDS readers, the logs you shared provide important clues. The error messages show that the RDS instance was unable to connect to an internal authentication component called "rdsauthproxy" (on port 1108), which is different from the user-configurable RDS Proxy service that appears in the RDS > Proxies menu.
This internal rdsauthproxy is part of the IAM authentication mechanism for RDS. When you connect using IAM authentication, the database needs to validate your IAM token by communicating with this internal proxy component.
To troubleshoot this issue:
-
Check the
TargetHealthstatus of your database instances using the AWS CLI commanddescribe-db-proxy-targets. Look for instances with aStatevalue ofUNAVAILABLEand examine theReasonandDescriptionfields for more details. -
If the
ReasonshowsPENDING_PROXY_CAPACITY, it could indicate that the proxy was scaling during that time, which might explain the temporary nature of your issue. -
If the
ReasonshowsUNREACHABLE,CONNECTION_FAILED, orAUTH_FAILURE, the description field should provide more specific information about what went wrong. -
Since the issue was temporary and affected only one instance, it could have been caused by:
- A temporary network connectivity issue between the RDS instance and the internal authentication proxy
- The internal proxy component temporarily being overloaded with connection requests
- A brief scaling or maintenance operation on the authentication infrastructure
-
Monitor CloudWatch metrics for your RDS instances to look for spikes in connection attempts or other anomalies during the affected time period.
-
Consider implementing connection retry logic in your application to handle these temporary authentication failures gracefully.
Since the issue resolved itself quickly, it was likely a transient problem with the internal authentication infrastructure rather than an issue with your IAM tokens or configuration.
Sources
Troubleshooting for RDS Proxy - Amazon Relational Database Service
Troubleshooting for RDS Proxy - Amazon Aurora
Relevant content
- asked a year ago
