工作需要,迁移公司 Home Page 的 Server。主要是 AWS server 跨 Region 的迁移,网上有些教程但比较零散,基本思路是:

原 AWS Region 生成镜像

  • 选择原 Server 所在 Region
  • 选择 EC2
    • 生成原 Server Instance 的镜像
      • INSTANCES-instances
        1. 勾选 原 Server Instance
        2. Actions-Image-Create Image
    • 跨 Region 复制 AMIs
      • IMAGES-AMIs
        1. Actions-Copy AMI
        2. 选择要复制 AMI 的 Destiation Region 和 Name 等信息

新 AWS Region 通过镜像生成 Server Instance

  • 选择新 Server 所在 Region
  • 选择 EC2
    • 新建安全组
      • NETWORK & SECURITY-Security Groups
        1. Create Secure Group( copy Defails from origin one )
    • 生成主机实例
      • IMAGES-AMIs
        1. 勾选 复制过来的 AMIs
        2. Launch
        3. 一系列配置
        4. 确认生成并启动实例