简体   繁体   English

AWS DMS启动复制任务

[英]AWS DMS Start replication task

I am able to create the DMS instances through through the YAML file. 我可以通过YAML文件创建DMS实例。 But I am not able to start the task to migrate the data. 但是我无法启动迁移数据的任务。 Is there any way I add the script in YAML to start the process automatically once the task gets created? 创建任务后,有什么方法可以在YAML中添加脚本以自动启动进程?

You can follow the official white paper for this yes I have done migration to DynamoDB using replication task through YAML automatically. 您可以按照官方白皮书进行操作,是的,我已经使用复制任务通过YAML自动完成了向DynamoDB的迁移。

Please follow this for help: https://github.com/aws-samples/specialty-practice-code-samples/tree/master/migrate-delimited-files-to-nosql 请按照以下说明寻求帮助: https : //github.com/aws-samples/specialty-practice-code-samples/tree/master/migrate-delimited-files-to-nosql

To start your Task start the migration you can use cloudformation even a A cloud watch event scheduler. 要开始您的任务以开始迁移,您甚至可以使用cloudformation,甚至可以使用cloud watch事件调度程序。

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationtask.html https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dms-replicationtask.html

And this one also: https://docs.aws.amazon.com/cli/latest/reference/dms/create-replication-task.html 而且这也是: https : //docs.aws.amazon.com/cli/latest/reference/dms/create-replication-task.html

I followed these 3 document and migrated a giant DB to DynamoDB. 我遵循了这3个文档,并将一个大型数据库迁移到DynamoDB。

What I did is created a replication task and scheduled a cloud watch event on it and with help of Lambda function triggered that CloudFormation YAML to migrated the DB. 我所做的就是创建一个复制任务并安排了一个云监视事件,并借助Lambda函数触发了CloudFormation YAML迁移数据库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM