Automate a Data Migration Service (DMS) Task

0

I have a DMS task set up to copy a AWS RDS Oracle schema to target s3 bucket.

Is there an option to automate the task, I have to run this DMS task everyday at 6 AM and I have to run it manually. Does AWS give the option to automate the DMS Task

raja
posta un anno fa1376 visualizzazioni
5 Risposte
0

Hi Raja,

You can leverage the Amazon EventBridge Scheduler to schedule that DMS task to run everyday at 6 AM for your timezone. You can set the target as the StartReplicationTask under AWS Database Migration Service shown in the screenshot below: Enter image description here

Note that this requires an IAM role that grants the EventBridge service permissions to start this task. The wizard for creating this schedule will provide options for choosing an existing IAM role or link to create a new one.

Let me know if you have any other questions

Loc, Data Architect, AWS ProServe

AWS
Loc
con risposta un anno fa
  • Hi I do not get the option to choose StartReplicationTask under AWS Database Migration Service,

0

Enter image description here

raja
con risposta un anno fa
  • Hi Raja,

    It looks like you are creating an EventBridge rule. Please try creating an EventBridge schedule - you'll see the option on the left side menu

    Loc

0
profile pictureAWS
ESPERTO
kentrad
con risposta un anno fa
0

Enter image description here

raja
con risposta un anno fa
0

if you want to create a eventbridge that resume the task (because you need start the first time manually) you need to create a eventbridge schedule for a lambda, that create a iam role automatically (because dms:StartReplicationTask dosnt). After that, you can edit the rule and add the "dms:StartReplicationTask" action into the role created, like this:

{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "lambda:InvokeFunction", "dms:StartReplicationTask" ], "Resource": "*" } ] } (can delete the lambda action if you want)

when you have this, now you can change the target service to DMS StartReplicationTask, whith the arn for your dms task and "StartReplicationTaskType": "resume-processing" (important resume-processing)

Cheers

con risposta un mese fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande