-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
@aws-cdk/aws-rdsRelated to Amazon Relational DatabaseRelated to Amazon Relational DatabasebugThis issue is a bug.This issue is a bug.effort/mediumMedium work item – several days of effortMedium work item – several days of effortp2
Description
Describe the bug
I am having the same issue as #30676 that was previously closed.
I am looking up a RDS Database Cluster to use as an AppSync datasource. The RDS Cluster does have Data API enabled and I can add it as a datasource in the AppSync console, however when I add the RDS datasource via cdk, I get the error:
RuntimeError: Error: Cannot grant Data API access when the Data API is disabled
Regression Issue
- Select this option if this issue appears to be a regression.
Last Known Working CDK Version
No response
Expected Behavior
I should be able add a RDS datasource to an AppSync API by using the fromDatabaseClusterAttributes
function.
Current Behavior
Error is thrown:
RuntimeError: Error: Cannot grant Data API access when the Data API is disabled
Reproduction Steps
# look up cluster
cluster = aws_rds.DatabaseCluster.from_database_cluster_attributes(
self,
'cluster',
cluster_identifier='my-cluster',
)
# add cluster as AppSync datasource
graph_api.add_rds_datasource(
'rds-datasource',
serverless_cluster=cluster,
secret_store=my_secret,
)
Possible Solution
No response
Additional Information/Context
#30676 explains this issue very well and what is causing it.
CDK CLI Version
2.151.0 (build b8289e2
Framework Version
No response
Node.js Version
v18.17.1
OS
MacOS
Language
Python
Language Version
Python 3.9
Other information
No response
xanderhades, kWhittington, go-to-k, alexcherryoneglobe and ryanwalters
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-rdsRelated to Amazon Relational DatabaseRelated to Amazon Relational DatabasebugThis issue is a bug.This issue is a bug.effort/mediumMedium work item – several days of effortMedium work item – several days of effortp2