RDS
Commands
apply
Apply a RDS
Create or Update a RDS resource with Duplocloud cli.
CLI Usage
Contents of therds.yaml file
Returns:
| Name | Type | Description |
|---|---|---|
message |
dict
|
Success message. |
Parameters:
--file, -f, --cli-input
--patches, --add, --remove, --copy, --replace, --test, --move
change_password
Change the password of a DB instance.
Parameters:
name
positional
password
positional
--save-secret, --save
create
Create a DB instance.
Model: AmazonRDSRequest
{
"description": "AmazonRDSRequest",
"properties": {},
"title": "AmazonRDSRequest",
"type": "object"
}
Parameters:
--file, -f, --cli-input
delete
engine_versions
List supported RDS engine versions and instance types.
final_snapshot
Toggle final snapshot for a DB instance.
Parameters:
name
positional
--enable, -y
--immediate, -i
find
find_cluster
Find a DB instance by name.
Returns: The DB instance object. Raises: DuploError: If the DB instance could not be found.
Parameters:
name
positional
iam_auth
Toggle IAM authentication for a DB instance.
Parameters:
name
positional
--enable, -y
--immediate, -i
list
logging
Enable or disable logging for a DB instance.
Parameters:
name
positional
--enable, -y
modify
Modify a DB instance via the ModifyRDSDBInstance endpoint.
Sends an arbitrary request body to the AWS ModifyRDSDBInstance API for the named DB instance. Used internally by higher-level commands like iam_auth, final_snapshot, and retention_period.
Returns:
| Name | Type | Description |
|---|---|---|
message |
dict
|
A success message. |
Parameters:
name
positional
--file, -f, --cli-input
reboot
Reboot a DB instance.
Parameters:
name
positional
restore
Restore a DB instance from a snapshot.
Parameters:
name
positional
--target, --target-name
--time, --time
retention_period
Set the retention period for a DB instance.
Parameters:
name
positional
days
positional
--immediate, -i
set_instance_size
Set the size of a DB instance.
Parameters:
name
positional
size
positional
set_monitor_interval
Set the monitoring interval for a DB instance.
Parameters:
name
positional
interval
positional
1
5
10
15
30
60
--immediate, -i
snapshot
Take a snapshot of a DB instance.
Parameters:
name
positional
start
Start a DB instance, or its cluster for Aurora/cluster engines.
Mirror of stop: routes Aurora/cluster engines to the cluster
start endpoint and regular RDS to the instance start endpoint.
Aurora Serverless v1 resumes automatically and is skipped.
Returns:
| Name | Type | Description |
|---|---|---|
message |
A success message. |
Parameters:
name
positional
stop
Stop a DB instance, or its cluster for Aurora/cluster engines.
Aurora and other cluster engines cannot be stopped at the member instance level; AWS only supports stop/start on the cluster. This command inspects the named resource's engine and routes to the correct existing endpoint. Aurora Serverless v1 auto-pauses and is skipped.
Returns:
| Name | Type | Description |
|---|---|---|
message |
A success message. |
Parameters:
name
positional
update
Update a V3 resource by name.
Returns:
| Name | Type | Description |
|---|---|---|
message |
Success message. |
Raises:
| Type | Description |
|---|---|
DuploError
|
If the resource could not be created. |
Parameters:
name
positional
--file, -f, --cli-input
--patches, --add, --remove, --copy, --replace, --test, --move
Methods
name_from_body
start_resources
Start every RDS resource in the tenant with correct routing.
Mirror of stop_resources.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
exclude
|
Instance identifiers to leave stopped. |
()
|
Returns:
| Type | Description |
|---|---|
|
A list of (name, DuploError) for resources that failed for a |
|
|
genuine reason (empty if all succeeded or were benign/skipped). |
stop_resources
Stop every RDS resource in the tenant with correct routing.
Lists all RDS resources, classifies each by engine, and stops them: regular instances via the instance endpoint, Aurora/cluster engines via the cluster endpoint (deduped so a multi-node cluster is stopped once), and Aurora Serverless v1 / DocumentDB skipped. Resources already stopped/stopping are treated as benign.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
exclude
|
Instance identifiers to leave running. |
()
|
Returns:
| Type | Description |
|---|---|
|
A list of (name, DuploError) for resources that failed for a |
|
|
genuine reason (empty if all succeeded or were benign/skipped). |