The current RDS constructs do not surface the IAM DB Authentication configuration, making it unusable without resorting to escape hatches.
https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html
I have a WIP for this, but the permission-granting API for the grantConnect primitive requires the "resource ID" of the DBInstances, which isn't surfaced by CloudFormation (hence requires a CustomResource).
+1
any news on this?
@RomainMuller did you submit your WiP anywhere?
@skinny85 - nope I never managed to finish that completely; and the underlying APIs changed quite a bit in between... so it's as good as not existent.
Work left here is to build a grantConnect() method that will grant an IAM IPrincipal with the permissions to connect. Any calls to grantConnect() should automatically turn set the iamAuthentication property, if not already.
Most helpful comment
Work left here is to build a
grantConnect()method that will grant an IAMIPrincipalwith the permissions to connect. Any calls tograntConnect()should automatically turn set theiamAuthenticationproperty, if not already.