

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# AWS PCS에 대한 Amazon EC2 스팟 역할
<a name="spot-role"></a>

**스팟**을 구매 옵션으로 사용하는 AWS PCS 컴퓨팅 노드 그룹을 생성하려면에 **AWSServiceRoleForEC2Spot** 서비스 연결 역할도 있어야 합니다 AWS 계정. 다음 AWS CLI 명령을 사용하여 역할을 생성할 수 있습니다. 자세한 내용은 *AWS Identity and Access Management 사용 설명서*의 [서비스 연결 역할 생성](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create-service-linked-role.html) 및 [AWS 서비스에 권한을 위임할 역할 생성을 참조하세요](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-service.html).

```
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.
```