Topic:   aws rds-data execute-sql
Mar 12, 2021 12:26 1 Replies 657 Views ALLINO

I'm testing this for possible application and I'm getting an unexpected error.

"An error occurred (BadRequestException) when calling the ExecuteSql operation: ERROR: invalid cluster id: arn:aws:rds:us-etc."

The documentation states that "-db-cluster-or-instance-arn (string) ARN of the target db cluster or instance"

That is an RDS instance arn that it is rejecting as a cluster id. The arn is a valid id for an RDS instance.

Is it unable to differentiate between cluster id's and instance arns without some kind of additional flag?

Prev Next
Topic Replies (1)
  1. 1
    idnkx user


    Currently, Data API is in beta for Aurora Serverless and is subject to change. [1] Since you are running the commands using an Oracle instance the command is not getting executed and is throwing an error of "invalid cluster id" as the command 'rds-data' is expecting an Aurora Serverless cluster id.

Leave a Reply
Guest User

Not sure what course is right for you?

Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.

Let`s Connect