适用于 AWS PCS 的 Amazon EC2 Spot 角色 - AWS PC

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

适用于 AWS PCS 的 Amazon EC2 Spot 角色

如果要创建使用 Spot 作为购买选项的 AWS PCS 计算节点组,则还必须具有AWSServiceRoleForEC2竞价服务相关角色。 AWS 账户您可以使用以下 AWS CLI 命令来创建角色。有关更多信息,请参阅《AWS Identity and Access Management 用户指南》中的创建服务相关角色和创建向 AWS 服务委派权限的角色。

aws iam create-service-linked-role --aws-service-name spot.amazonaws.com
注意

如果您 AWS 账户 已经拥有 AWSServiceRoleForEC2Spot IAM 角色,则会收到以下错误。

An error occurred (InvalidInput) when calling the CreateServiceLinkedRole operation: Service role name AWSServiceRoleForEC2Spot has been taken in this account, please try a different suffix.