I am getting error while building aws cdk rds **Stack failed: ValidationError: Given input did not match expected format

Viewed 1540

I am getting error while building rds instance using typescript langauge: Error : Argument of type '{ engine: DatabaseInstanceEngine; vpc: Vpc; vpcPlacement: { subnetType: SubnetType.ISOLATED; }; storageEncrypted: true; multiAz: false; autoMinorVersionUpgrade: false; ... 8 more ...; port: number; }' is not assignable to parameter of type 'DatabaseInstanceProps'. Object literal may only specify known properties, and 'instanceClass' does not exist in type 'DatabaseInstanceProps'.

enter image description here

enter image description here

enter image description here

enter image description here

1 Answers

It looks like you are using a mistyped attribute. Try and replace the attribute instanceClass in your database instance properties with instanceType.

Here’s the documentation for your reference.

Related