How to create a Database Replica in AWS RDS using RDS instance, created using DatabaseInstanceFromSnapshot #21964
Unanswered
rpfelgueiras
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to create a DB Read Replica using AWS CDK. I am creating an RDS DatabaseInstance using the method
DatabaseInstanceFromSnapshot
in AWS CDK. I want to use this RDS instance to create a Read Replica usingDatabaseInstanceReadReplica
method.DatabaseInstanceReadReplica
takes asourceDatabaseInstance
as a parameter. ForsourceDatabaseInstance
I am passing the DatabaseInstance returned fromDatabaseInstanceFromSnapshot
method. But I get the following error:Type 'DatabaseInstanceReadReplica' is missing the following properties from type 'DatabaseInstance': sourceCfnProps, singleUserRotationApplication, multiUserRotationApplication, addRotationSingleUser, addRotationMultiUsers(2739)
How do I fix this issue? Any help is appreciated.
Below is the code.
Beta Was this translation helpful? Give feedback.
All reactions