0

I need a way to get notified when the task finished rather it failed or Load complete

const dms : AWS.DMS;

const params = {
        StartReplicationTaskType: "reload-target",
        ReplicationTaskArn:
          "MyArn",
      };

dms.startReplicationTask(
          params,
          (err: AWS.AWSError, data: AWS.DMS.StartReplicationTaskResponse) => {
            if (err) {
              console.log("failed_with_error", err);
             
            }
            if (data) {
              console.log("success ", data);
             
            }
          }
        );

after the task started I got response on the data object with status: starting but it's not updated with the other status.

I tried waitFor to track status changing but its not working

Mina Fawzy
  • 20,852
  • 17
  • 133
  • 156

1 Answers1

0

create event subscription under DMS --> Event subscriptions

then create Lambda function triggered by that event subscription

Mina Fawzy
  • 20,852
  • 17
  • 133
  • 156