I want to create a passwordless setup for connecting to RDS proxy from EC2 (e.g. using an IAM role instead of db username & pwd credentials). E.g. code running on EC2 (e.g. php, or java etc..) wouldn't have to explicitly provide a db connection password, just the hostname / proxy end point, as well as possibly the db user name. I've got my secrets manager + RDS + Proxy all working fine when working in password mode;
There are a plethora of tutorials documenting how to use IAM roles to connect directly to RDS without using the proxy; and for connecting to a proxy via Lambda (I need ec2); but I can't seem to find the missing link anywhere. I see there's an option in RDS proxy for "IAM Authentication = Required" which I currently have set. But the IAM db-connect permission doesn't seem to apply to proxies; only RDS databases.
Have Googled for 2 hours, read a dozen articles. Ideally this would be an IAM role that I could attach to my ec2 Instance(s).
Thanks!