View a markdown version of this page

配置委托管理员 - Amazon Elastic Compute Cloud

配置委托管理员

您可以为容量管理器注册委派管理员。这使得成员账户能够为您的 AWS Organization 管理容量管理器。只有管理账户才能在您的组织内注册或移除委派管理员。

注意

如果已有注册的委派管理员,则无法为组织禁用容量管理器。

先决条件

您的管理账户必须已使用 AWS Organizations 启用容量管理器。有关更多信息,请参阅 使用 AWS Organizations 启用 EC2 容量管理器

注册委派管理员

您可以使用 Amazon EC2 控制台、AWS CLI 或 PowerShell 注册委派管理员。

Console
注册委派管理员
  1. 通过以下网址打开 Amazon EC2 控制台:https://console.aws.amazon.com/ec2/

  2. 在导航窗格中,选择容量管理器

  3. 选择设置选项卡。

  4. 委派管理员部分中,选择添加

  5. 在出现的提示中,输入您要添加为委派管理员的组织成员的账户 ID。

  6. 选择 Add delegated administrator (添加委派管理员)

AWS CLI
注册委派管理员

运行如下命令:

aws organizations register-delegated-administrator \ --account-id 123456789012 \ --service-principal ec2.capacitymanager.amazonaws.com
PowerShell
注册委派管理员

使用 Register-ORGDelegatedAdministrator cmdlet。

Register-ORGDelegatedAdministrator ` -AccountId "123456789012" ` -ServicePrincipal "ec2.capacitymanager.amazonaws.com"

移除委托管理员

您可以使用 Amazon EC2 控制台、AWS CLI 或 PowerShell 移除委派管理员。

Console
要移除委派管理员
  1. 通过以下网址打开 Amazon EC2 控制台:https://console.aws.amazon.com/ec2/

  2. 在导航窗格中,选择容量管理器

  3. 选择设置选项卡。

  4. 委派管理员部分中,选择管理

  5. 在出现的提示中,选择移除委派管理员

AWS CLI
要移除委派管理员

运行如下命令:

aws organizations deregister-delegated-administrator \ --account-id 123456789012 \ --service-principal ec2.capacitymanager.amazonaws.com
PowerShell
要移除委派管理员

使用 Unregister-ORGDelegatedAdministrator cmdlet。

Unregister-ORGDelegatedAdministrator ` -AccountId "123456789012" ` -ServicePrincipal "ec2.capacitymanager.amazonaws.com"