How Can I Track Successful IAM Auth Connections to MySQL Aurora?

July 4, 2025 3 answers
Asked by Clockwise!
Hey everyone! We've recently set up IAM Authentication for our MySQL Aurora (Serverless v2) instance, but I'm hitting a wall trying to trace successful connection attempts. Currently, the only CloudWatch logs we have access to are the `iam-db-auth-error` logs, which only show failed attemptsโ€”great for catching issues, but not what we need for monitoring. I've also checked CloudTrail, but came up empty there too. It's pretty crucial for us to have visibility on who connects to our databases for compliance reasons. Does anyone have ideas, suggestions, or workarounds for tracking these successful connection attempts?

Answers

Dribbler
I understand your struggle! Here are a couple of resources that might assist you with monitoring successful IAM authentication connections: 1. [Link to resource 1](https://go.aws/44tOxPx) and 2. [Link to resource 2](https://go.aws/44svMvY). If you need deeper technical support, check out this article on other ways to get help: [Get Help](http://go.aws/get-help).

Clockwise!: I appreciate the links! But like I told TechSavvyNerd87, theyโ€™ll mostly help if we had personalized logins. If we did have that, wouldnโ€™t we just use the general log to see all the CONNECT activity? Am I right?

Reply to this answer
atlas.21
Quick questionโ€”does Alice have her own IAM role to generate the auth token, or is she using a common one? Knowing this might help in figuring out the traceability issue.
Reply to this answer
simmer down
Have you checked out the advanced auditing options? It might provide the insights youโ€™re looking for. You can find more about it in the AWS documentation on auditing for MySQL. It could help enhance your traceability efforts!

Clockwise!: Thanks for the suggestion! But Iโ€™m not sure itโ€™ll work for us since we donโ€™t have personalized MySQL logins. It seems like it would only log a CONNECT event under a shared username like 'dev'. I was hoping we could directly tie the IAM auth process to those logins. Any idea why successful attempts wouldnโ€™t get logged like failed ones?

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions