Skip to main content

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​

  1. Set up an Amazon RDS connection in the Integration Account Console. Verify the connection and confirm its status is READY.
  2. Add Amazon RDS to a Workflow Studio task and choose the connection under General > Connection.
  3. Set the operation and AWS region. Supply a database identifier for an exact lookup or an optional engine filter for an inventory.
  4. Check status before evaluating the result. For inventory, continue with nextToken while hasMore is true.

Inputs​

InputTypeRequiredDefaultPurpose
operationstringYes—list_instances, describe_instance, list_clusters, or describe_cluster.
regionstringYes—AWS region containing the databases.
enginestringNoAll enginesAWS engine identifier such as postgres or aurora-postgresql. Inventory only.
limitintegerNo50AWS page size from 20 to 100. Inventory only. An exact lookup ignores the editor’s default value.
nextTokenstringNo—Opaque continuation token from the preceding page. Inventory only.
identifierstringFor exact lookups—Exact DB instance or cluster identifier. The module accepts names such as orders-prod.

Outputs​

OutputMeaning
status / operationsuccess or error, and the recognized operation when available.
items / countOne inventory page and its item count.
hasMore / nextTokenWhether another page is available and the token for fetching it.
dataSelected fields from an exact resource lookup.
requestIdAWS request reference when available.
errorRedacted 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_instances uses DescribeDBInstances to return one regional page of DB instances.
  • describe_instance uses the same API with an exact DB instance identifier.
  • list_clusters uses DescribeDBClusters to return one regional page of DB clusters.
  • describe_cluster uses 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 is READY with both protected fields populated.
  • For RESOURCE_NOT_FOUND, verify the resource identifier, account, and region. For an authorization error with code AWS_RDS_HTTP_403, check the connection's IAM policy.
  • For INVALID_PROVIDER_RESPONSE, use the AWS request reference when available to investigate. DESTINATION_DENIED means the request failed the regional RDS destination check. For NETWORK_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.