本文介绍从AWS DynamoDB到阿里云MongoDB的迁移框架。
它概述了以下步骤:
- 在阿里云上配置云数据库MongoDB版并应用公网终端节点
- 在 AWS EC2 上安装 Nimoshake
- 将AWS EC2访问阿里云MongoDB版列入白名单
- 配置 Nimoshake 并开始迁移过程
- 验证目标数据库上的增量数据
1. 创建阿里云MongoDB实例(4.4版本分片集群)


Nimoshake 不支持 v4.4 以上的 MongoDB 版本,请务必使用 MongoDB 4.4、MongoDB 4.2 或 MongoDB 4.0。

2. 申请MongoDB实例的公网连接字符串


3. 创建用于部署 Nimoshake 的 EC2 实例



4. 将EC2 IP地址添加到MongoDB实例的白名单中

5. Nimoshake 的部署和数据迁移
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
aws configure

wget https://github.com/alibaba/NimoShake/releases/download/release-v1.0.13-20220411/nimo-shake-v1.0.13.tar.gz
tar zxvf nimo-shake-v1.0.13.tar.gz
cd nimo-shake-v1.0.13/
vi nimo-shake.conf
键入 AWS、AK/SK 和区域

键入阿里云MongoDB实例公有连接字符串和集群类型。

./nimo-shake.linux -conf=nimo-shake.conf

6. 使用DMS查看阿里云MongoDB实例的迁移结果
