RdsStopDbOperator

Amazon

Stops an RDS DB instance / cluster

View on GitHub

Last Updated: Jan. 31, 2023

Access Instructions

Install the Amazon provider package into your Airflow environment.

Import the module into your DAG file and instantiate it with your desired params.

Parameters

db_identifierRequiredThe AWS identifier of the DB to stop
db_typeType of the DB - either “instance” or “cluster” (default: “instance”)
db_snapshot_identifierThe instance identifier of the DB Snapshot to create before stopping the DB instance. The default value (None) skips snapshot creation. This parameter is ignored when db_type is “cluster”
aws_conn_idThe Airflow connection used for AWS credentials. (default: “aws_default”)
wait_for_completionIf True, waits for DB to stop. (default: True)

Documentation

Stops an RDS DB instance / cluster

See also

For more information on how to use this operator, take a look at the guide: Stop a database instance or cluster

Was this page helpful?