Amazon RDS

Use Amazon RDS Aurora Serverless through the Data API to query or modify rows, execute SQL, and inspect the database schema from a workflow.

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.

Actions

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 (e.g., arn:aws:rds:us-east-1:123456789012:cluster:my-cluster)
secretArnstringYesARN of the Secrets Manager secret containing DB credentials
databasestringNoDatabase name to connect to (e.g., mydb, production_db)
querystringYesSQL SELECT query to execute (e.g., SELECT * FROM users WHERE status = :status)

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 (e.g., arn:aws:rds:us-east-1:123456789012:cluster:my-cluster)
secretArnstringYesARN of the Secrets Manager secret containing DB credentials
databasestringNoDatabase name to connect to (e.g., mydb, production_db)
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 (e.g., arn:aws:rds:us-east-1:123456789012:cluster:my-cluster)
secretArnstringYesARN of the Secrets Manager secret containing DB credentials
databasestringNoDatabase name to connect to (e.g., mydb, production_db)
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 (e.g., arn:aws:rds:us-east-1:123456789012:cluster:my-cluster)
secretArnstringYesARN of the Secrets Manager secret containing DB credentials
databasestringNoDatabase name to connect to (e.g., mydb, production_db)
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 (e.g., arn:aws:rds:us-east-1:123456789012:cluster:my-cluster)
secretArnstringYesARN of the Secrets Manager secret containing DB credentials
databasestringNoDatabase name to connect to (e.g., mydb, production_db)
querystringYesRaw SQL query to execute (e.g., CREATE TABLE users (id SERIAL PRIMARY KEY, name VARCHAR(255)))

Output

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

RDS Introspect

Introspect Amazon RDS Aurora database schema to retrieve table structures, columns, and relationships

Input

ParameterTypeRequiredDescription
regionstringYesAWS region (e.g., us-east-1)
accessKeyIdstringYesAWS access key ID
secretAccessKeystringYesAWS secret access key
resourceArnstringYesARN of the Aurora DB cluster (e.g., arn:aws:rds:us-east-1:123456789012:cluster:my-cluster)
secretArnstringYesARN of the Secrets Manager secret containing DB credentials
databasestringNoDatabase name to connect to (e.g., mydb, production_db)
schemastringNoSchema to introspect (default: public for PostgreSQL, database name for MySQL)
enginestringNoDatabase engine (aurora-postgresql or aurora-mysql). Auto-detected if not provided.

Output

ParameterTypeDescription
messagestringOperation status message
enginestringDetected database engine type
tablesarrayArray of table schemas with columns, keys, and indexes
schemasarrayList of available schemas in the database