RdsCreateDbSnapshotOperator

Amazon

Creates a snapshot of a DB instance or DB cluster. The source DB instance or cluster must be in the available or storage-optimization state.

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_typeRequiredType of the DB - either “instance” or “cluster”
db_identifierRequiredThe identifier of the instance or cluster that you want to create the snapshot of
db_snapshot_identifierRequiredThe identifier for the DB snapshot
tagsA dictionary of tags or a list of tags in format [{“Key”: “…”, “Value”: “…”},] USER Tagging
wait_for_completionIf True, waits for creation of the DB snapshot to complete. (default: True)

Documentation

Creates a snapshot of a DB instance or DB cluster. The source DB instance or cluster must be in the available or storage-optimization state.

See also

For more information on how to use this operator, take a look at the guide: Create a database snapshot

Was this page helpful?