Amazon RDS ExecModule
Overview
AwsRdsModule reads regional database inventory and configuration through the Amazon RDS control plane. Inventory instances and clusters separately, then look up an exact database identifier to collect evidence for an upgrade, configuration review, or incident investigation.
The module returns selected configuration and status fields. A workflow can use them to route review tasks by engine version, flag a resource for a backup policy review, or provide a database owner with a current configuration snapshot.
Usage
- Set up an Amazon RDS connection in the Integration Account Console. Verify the connection and confirm its status is
READY. - Add Amazon RDS to a Workflow Studio task and choose the connection under General > Connection.
- Set the operation and AWS region. Supply a database identifier for an exact lookup or an optional engine filter for an inventory.
- Check
statusbefore evaluating the result. For inventory, continue withnextTokenwhilehasMoreis true.
Inputs
| Input | Type | Required | Default | Purpose |
|---|---|---|---|---|
operation | string | Yes | — | list_instances, describe_instance, list_clusters, or describe_cluster. |
region | string | Yes | — | AWS region containing the databases. |
engine | string | No | All engines | AWS engine identifier such as postgres or aurora-postgresql. Inventory only. |
limit | integer | No | 50 | AWS page size from 20 to 100. Inventory only. An exact lookup ignores the editor’s default value. |
nextToken | string | No | — | Opaque continuation token from the preceding page. Inventory only. |
identifier | string | For exact lookups | — | Exact DB instance or cluster identifier. The module accepts names such as orders-prod. |
Outputs
| Output | Meaning |
|---|---|
status / operation | success or error, and the recognized operation when available. |
items / count | One inventory page and its item count. |
hasMore / nextToken | Whether another page is available and the token for fetching it. |
data | Selected fields from an exact resource lookup. |
requestId | AWS request reference when available. |
error | Redacted code, message, retryability, and HTTP status when available. |
Each resource includes the identifier, engine, engine version, and state when AWS supplies them. Optional fields include storage encryption, Multi-AZ configuration, backup retention days, and deletion protection. Instance results can also include the instance class, parent cluster identifier, and public accessibility setting.
The public accessibility setting describes the AWS configuration. Determine reachability separately using network controls and a check from the intended client network.
IntegrationAccount Requirements
Use a verified Amazon RDS connection with account name AWS and status READY. Store the key pair in the protected AWS Access Key ID and AWS Secret Access Key fields. The module signs requests with AWS Signature Version 4. Keep credentials in the connection and out of workflow inputs.
Allow rds:DescribeDBInstances for instance operations and rds:DescribeDBClusters for cluster operations. Review the AWS action and resource scope guidance when creating the IAM policy. Amazon RDS IAM actions and resource types
Configuration
Set the region for each lookup. The module uses the standard regional RDS HTTPS endpoint and the protected AWS key pair. For additional accounts or regions, invoke it separately with the applicable connection and region.
Operations
list_instancesuses DescribeDBInstances to return one regional page of DB instances.describe_instanceuses the same API with an exact DB instance identifier.list_clustersuses DescribeDBClusters to return one regional page of DB clusters.describe_clusteruses the same API with an exact DB cluster identifier.
The RDS describe APIs can also return resources from Neptune and DocumentDB. Use an engine filter when a workflow needs a specific engine family.
Errors and Failure Modes
- For
VALIDATION_ERROR, check the operation, region, page size, and whether the inputs apply to that operation. - For
INTEGRATION_ACCOUNT_ERROR, check that the verified connection isREADYwith both protected fields populated. - For
RESOURCE_NOT_FOUND, verify the resource identifier, account, and region. For an authorization error with codeAWS_RDS_HTTP_403, check the connection's IAM policy. - For
INVALID_PROVIDER_RESPONSE, use the AWS request reference when available to investigate.DESTINATION_DENIEDmeans the request failed the regional RDS destination check. ForNETWORK_ERROR, check outbound connectivity and use bounded backoff when the response marks the failure retryable.
Example
Inventory Aurora PostgreSQL clusters before a backup retention review.
{
"operation": "list_clusters",
"region": "us-west-2",
"engine": "aurora-postgresql",
"limit": 50
}
A successful page could contain the following result.
{
"status": "success",
"operation": "list_clusters",
"items": [
{
"identifier": "orders-prod",
"engine": "aurora-postgresql",
"engineVersion": "16.4",
"state": "available",
"storageEncrypted": true,
"backupRetentionDays": 14,
"deletionProtection": true
}
],
"count": 1,
"hasMore": false
}
Compare backupRetentionDays with the policy for that workload. To check the cluster again before routing a review, pass orders-prod to describe_cluster with the same account and region.
Notes
- Each inventory call reads one page. Keep the account, region, operation, and engine filter fixed while following the continuation token. Page size limits follow the RDS API.
- The SDK retries eligible transient failures up to twice. Keep regional fan-out bounded to reduce throttling. Amazon RDS endpoints and quotas
- All four operations are read-only and safe to repeat. Use account, region, resource type, and identifier together when reconciling inventory.
- This module reads control-plane configuration. Use a database connection for SQL, workload metrics for performance, and a separate authorized change process for database mutations.