[rds] Add grant Method to Access the Data API for Aurora Serverless #10744
Labels
@aws-cdk/aws-rds
Related to Amazon Relational Database
feature-request
A feature should be added or improved.
needs-triage
This issue or PR still needs to be triaged.
Adding a grant method to the
SeverlessCluster
construct to grant resources (e.g. Lambda functions) access to the Data API for Aurora Serverless](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html).Use Case
Granting lambda functions access to the Data API.
Proposed Solution
Add a
grantDataApi
method which grants the grantee the minimum required permissions to access the Data API, see Authorizing access to the Data API for more details.While Authorizing access to the Data API lists "minimum required permissions", wildcards can be restricted to the resource in question. The
grantDataApi
would only grant invoke permissions for the Data API.Furthermore, access to the secret associated with the cluster must be granted separately to the grantee (e.g. Lambda function) via
cluster.secret.grantRead(grantee)
.Other
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: