Cross-account IAM authentication support #1239
-
We are using aws-mysql-jdbc currently for RDS IAM auth between our services (pod-level IAM with EKS) and aurora clusters within same AWS account. Going forward we have to support cross-account access between eks pods and aurora instances, we were wondering if there is a way to configure cross-account IAM auth with this library out of the box. My reading of the code/docs dint turn up anything. If there is nothing out of the box, I was thinking if we could manage to override credentials provider in plugin as sts credential provider based on new PS: We have to migrate to this library regardless but our new cross-account IAM access is accelerating that migration. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Furhter reading I found a simpler example This would require us to make a widespread code change but is definitely a possibility. |
Beta Was this translation helpful? Give feedback.
-
Also there is already a nice documentation : https://github.com/aws/aws-advanced-jdbc-wrapper/blob/main/docs/using-the-jdbc-driver/custom-configuration/AwsCredentialsConfiguration.md |
Beta Was this translation helpful? Give feedback.
-
I had the same issue, and I was able to fix it as simple as
I still think it would be more elegant if this would be provided as part of the JDBC driver, but at least it can be easily implemented |
Beta Was this translation helpful? Give feedback.
I had the same issue, and I was able to fix it as simple as