Access DbInstance
from DbCluster
so that I can grantConnect
#25924
-
When I instantiate a DbCluster, I need to grant lambdas the ability to connect to the DB as I use IAM DB Auth. I have a custom resource that enables me to do this now, but native Also, anyone know why |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
How exactly do you imagine this would work? Feel free to create a feature request for this if you have a good idea on how it would work and think there's a good use case for it |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
Sorry, I didn't take the proper care when looking at this issue. I was in a rush, thank you for being patient with me.
I think we need to open a feature request for this.
DatabaseCluster
doesn't implementDatabaseInstance
anywhere under the hood, so there are noDatabaseInstance
s to reference.And you're right that it would be nice if
DatabaseCluster
had a method for this, or at least had properties that had methods for this. This would need to start to be implemented here I believe, though I'm not sure what the best way to expose it to the end user would be.aws-cdk/packages/aws-cdk-lib/aws-rds/lib/aurora-cluster-instance.ts
Line 422 in 27dc8ff