(aws_rds): DatabaseCluster s3ImportRole fails with Aurora MySQL 3 #19126
Labels
@aws-cdk/aws-rds
Related to Amazon Relational Database
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
p1
What is the problem?
Creating a
DatabaseCluster
with the propertys3ImportRole
ors3ImportBuckets
fails when the engine version is Aurora MySQL 3 (MySql 8.0). Using these properties on the construct causes it to addaurora_load_from_s3_role
to the cluster parameter group; however this parameter is not supported for engine version 3 andaws_default_s3_role
must be used instead (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Reference.html).Additionally, although I can set up the correct IAM role and
aws_default_s3_role
property in the cluster parameter group myself, I do not see any way with theDatabaseCluster
construct to associate a role with the cluster without also triggering the failing behavior that modifies the parameter group, so I am really stuck. How can I just associate a role with the cluster?Reproduction Steps
What did you expect to happen?
Add the role to the cluster and associate the parameter group with the given parameters with the cluster.
What actually happened?
CDK CLI Version
2.1.0 (build f4f18b1)
Framework Version
2.1.0
Node.js Version
v14.16.0
OS
macOS 12.2.1
Language
Typescript
Language Version
3.9.10
Other information
No response
The text was updated successfully, but these errors were encountered: