Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Amazon EC2 Spot role for AWS PCS

Focus mode
Amazon EC2 Spot role for AWS PCS - AWS PCS

If you want to create an AWS PCS compute node group that uses Spot as its purchase option, you must also have the AWSServiceRoleForEC2Spot service-linked role in your AWS account. You can use the following AWS CLI command to create the role. For more information, see Create a service-linked role and Create a role to delegate permissions to an AWS service in the AWS Identity and Access Management User Guide.

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

You receive the following error if your AWS account already has an AWSServiceRoleForEC2Spot IAM role.

An error occurred (InvalidInput) when calling the CreateServiceLinkedRole operation: Service role name AWSServiceRoleForEC2Spot has been taken in this account, please try a different suffix.
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.