Mandala
Tools

Amazon RDS

Connect to Amazon RDS via Data API

Usage Instructions

Integrate Amazon RDS Aurora Serverless into the workflow using the Data API. Can query, insert, update, delete, and execute raw SQL without managing database connections.

Tools

rds_query

Execute a SELECT query on Amazon RDS using the Data API

Input

ParameterTypeRequiredDescription
regionstringYesAWS region (e.g., us-east-1)
accessKeyIdstringYesAWS access key ID
secretAccessKeystringYesAWS secret access key
resourceArnstringYesARN of the Aurora DB cluster
secretArnstringYesARN of the Secrets Manager secret containing DB credentials
databasestringNoDatabase name (optional)
querystringYesSQL SELECT query to execute

Output

ParameterTypeDescription
messagestringOperation status message
rowsarrayArray of rows returned from the query
rowCountnumberNumber of rows returned

rds_insert

Insert data into an Amazon RDS table using the Data API

Input

ParameterTypeRequiredDescription
regionstringYesAWS region (e.g., us-east-1)
accessKeyIdstringYesAWS access key ID
secretAccessKeystringYesAWS secret access key
resourceArnstringYesARN of the Aurora DB cluster
secretArnstringYesARN of the Secrets Manager secret containing DB credentials
databasestringNoDatabase name (optional)
tablestringYesTable name to insert into
dataobjectYesData to insert as key-value pairs

Output

ParameterTypeDescription
messagestringOperation status message
rowsarrayArray of inserted rows
rowCountnumberNumber of rows inserted

rds_update

Update data in an Amazon RDS table using the Data API

Input

ParameterTypeRequiredDescription
regionstringYesAWS region (e.g., us-east-1)
accessKeyIdstringYesAWS access key ID
secretAccessKeystringYesAWS secret access key
resourceArnstringYesARN of the Aurora DB cluster
secretArnstringYesARN of the Secrets Manager secret containing DB credentials
databasestringNoDatabase name (optional)
tablestringYesTable name to update
dataobjectYesData to update as key-value pairs
conditionsobjectYesConditions for the update (e.g., {"id": 1})

Output

ParameterTypeDescription
messagestringOperation status message
rowsarrayArray of updated rows
rowCountnumberNumber of rows updated

rds_delete

Delete data from an Amazon RDS table using the Data API

Input

ParameterTypeRequiredDescription
regionstringYesAWS region (e.g., us-east-1)
accessKeyIdstringYesAWS access key ID
secretAccessKeystringYesAWS secret access key
resourceArnstringYesARN of the Aurora DB cluster
secretArnstringYesARN of the Secrets Manager secret containing DB credentials
databasestringNoDatabase name (optional)
tablestringYesTable name to delete from
conditionsobjectYesConditions for the delete (e.g., {"id": 1})

Output

ParameterTypeDescription
messagestringOperation status message
rowsarrayArray of deleted rows
rowCountnumberNumber of rows deleted

rds_execute

Execute raw SQL on Amazon RDS using the Data API

Input

ParameterTypeRequiredDescription
regionstringYesAWS region (e.g., us-east-1)
accessKeyIdstringYesAWS access key ID
secretAccessKeystringYesAWS secret access key
resourceArnstringYesARN of the Aurora DB cluster
secretArnstringYesARN of the Secrets Manager secret containing DB credentials
databasestringNoDatabase name (optional)
querystringYesRaw SQL query to execute

Output

ParameterTypeDescription
messagestringOperation status message
rowsarrayArray of rows returned or affected
rowCountnumberNumber of rows affected

Notes

  • Category: tools
  • Type: rds
Amazon RDS