CloudSnorkel/cdk-rds-sanitized-snapshots

State machine fail on RDS Serverless due to missing databaseInstance param

Closed this issue · 2 comments

Hi,

is this Construct compatible with RDS Serverless as source? Because the Step Function seems to fail due ti the missing databaseInstance as I only have the databaseCluster parameter for RDS Aurora Serverless?

If I only configure the databaseCluster parameter the Step Function shows the following error:

{
  "errorType": "TypeError",
  "errorMessage": "Cannot read property 'DBInstanceIdentifier' of undefined",
  "trace": [
    "TypeError: Cannot read property 'DBInstanceIdentifier' of undefined",
    "    at Runtime.exports.handler (/var/task/index.js:61:109)",
    "    at processTicksAndRejections (internal/process/task_queues.js:95:5)"
  ]
}
kichik commented

I haven't tried Aurora Serverless yet. The tests that run are defined in default.integ.ts.

Where does the error come from? Which step of the step function spits it out?

Would you be able to share the code that you used too? I can't get it to even compile since databaseCluster is expecting IDatabaseCluster but ServerlessCluster doesn't implement that.

Please reopen if you have further details.