CmdID / aws / aws rds-data
aws rds-data execute-sql
Runs one or more SQL statements. AWS CLI reference
5 options Its page in the AWS CLI reference
Options
--aws-secret-store-arnThe Amazon Resource Name (ARN) of the secret that enables access to the DB cluster.--databaseThe name of the database.--db-cluster-or-instance-arnThe ARN of the Aurora Serverless DB cluster.--schemaThe name of the database schema.--sql-statementsOne or more SQL statements to run on the DB cluster.