mysql – Getting (InvalidInputException) when calling the UpdateRelationalDatabaseParameters operation through the awscli


I am trying to increase the value of max_connections of my MySQL DB on my Lightsail account. To do so, I am connecting through ssh using the awscli.

Unfortunately, I receive an error when I type the following command:

aws lightsail update-relational-database-parameters --relational-database-name DATABASENAME --parameters "parameterName=max_connections,parameterValue=500"

(Of course, DATABASENAME is replaced by the actual name of my db)

The error only says:
An error occurred (InvalidInputException) when calling the UpdateRelationalDatabaseParameters operation: (and nothing after the colon)

Is there something wrong with the syntax? I am following the one from the doc