设置 - Amazon Elastic Compute Cloud
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

设置

此部分介绍运行 Windows 到 Linux 平台转换脚本所需的步骤。

先决条件

要运行 Microsoft SQL Server 数据库从 Windows 到 Linux 的平台转换助手脚本,您必须执行以下操作:

  1. 安装 Amazon PowerShell 模块

    要安装 Amazon PowerShell 模块,请按照在 Windows 上安装 Amazon Tools for PowerShell 中列出的步骤操作。建议您为备份脚本使用 PowerShell 3.0 或更高版本以确保正常工作。

  2. 安装 Windows 到 Linux 平台转换助手 PowerShell 备份脚本
  3. 将 Amazon 用户配置文件添加到 Amazon 开发工具包商店

    要添加和配置 Amazon 用户配置文件,请参阅 Tools for PowerShell Amazon 用户指南管理配置文件中列出的步骤。为您的用户配置文件设置以下 IAM policy

    { "Version": "2012-10-17", "Statement": [ { "Sid": "VisualEditor0", "Effect": "Allow", "Action": "iam:PassRole", "Resource": "arn:aws:iam::123456789012:role/DevTeam*" }, { "Sid": "VisualEditor1", "Effect": "Allow", "Action": [ "ec2:RebootInstances", "ssm:SendCommand", "ssm:GetAutomationExecution", "ec2:DescribeInstances", "ssm:ListCommands", "ec2:CreateTags", "s3:CreateBucket", "ec2:RunInstances", "s3:ListBucket", "ssm:GetCommandInvocation", "s3:PutEncryptionConfiguration", "ec2:DescribeImages", "s3:PutObject", "s3:GetObject", "ssm:StartAutomationExecution", "ssm:DescribeInstanceInformation", "s3:DeleteObject", "ssm:ListCommandInvocations", "s3:DeleteBucket", "ec2:DescribeInstanceStatus" ], "Resource": "*" } ] }
  4. 创建 IAM 实例配置文件角色

    要创建 IAM 实例配置文件角色以在 EC2 Linux 上运行 Systems Manager,请参阅《Amazon Systems Manager 用户指南》中的为 Systems Manager 创建 IAM 实例配置文件中列出的步骤。

将平台转换到现有 EC2 实例的先决条件

要将平台转换到在 Linux 上运行 Microsoft SQL Server 2017 的现有实例中,您必须:

  1. 使用 Amazon Identity and Access Management (IAM) 实例配置文件配置 EC2 实例并附加 AmazonSSMManagedInstanceCore 托管策略。

    有关为 Systems Manager 创建 IAM 实例配置文件并将其附加到实例的信息,请参阅 Amazon Systems Manager 用户指南中的以下主题:

  2. 验证 EC2 实例上是否安装了 SSM Agent。有关更多信息,请参阅《Amazon Systems Manager 用户指南》中的在适用于 Windows Server 的 Amazon EC2 实例上使用 SSM Agent

  3. 验证 EC2 实例是否有足够的可用磁盘空间来下载和还原 Microsoft SQL Server 备份。