AWS Database Migration Service Operators¶
Prerequisite Tasks¶
To use these operators, you must do a few things:
Create necessary resources using AWS Console or AWS CLI.
Install API libraries via pip.
Detailed information is available Installation
Overview¶
Airflow to AWS Database Migration Service (DMS) integration provides several operators to create and interact with DMS replication tasks.
One example_dag is provided which showcases some of these operators in action.
example_dms_full_load_task.py
Create replication task, wait for it completion and delete it.¶
Purpose¶
This example dag example_dms_full_load_task.py
uses DmsCreateTaskOperator
, DmsStartTaskOperator
,
DmsTaskCompletedSensor
, DmsDeleteTaskOperator
to create replication task, start it, wait for it
to be completed, and then delete it.
Defining tasks¶
In the following code we create a new replication task, start it, wait for it to be completed and then delete it.