

# Create Amazon EC2 spot fleet roles in the Amazon Web Services Management Console
<a name="spot-fleet-roles-console"></a>

**To create the `AmazonEC2SpotFleetTaggingRole` IAM service-linked role for Amazon EC2 Spot Fleet**

1. Open the IAM console at [https://console.amazonaws.cn/iam/](https://console.amazonaws.cn/iam/).

1. For **Access Management**, choose **Roles**, 

1. For **Roles**, choose **Create role**.

1. From **Select trusted entity** for **Trusted entity type**, choose **Amazon Web Services service**. 

1. For **Use cases for other Amazon Web Services services**, choose **EC2** and then choose **EC2 - Spot Fleet Tagging**.

1. Choose **Next**.

1. From **Permissions policies** for **Policy name**, verify `AmazonEC2SpotFleetTaggingRole`. 

1. Choose **Next**.

1. For **Name, review, and create**:

   1. For **Role name**, enter a name to identify the role.

   1. For **Description**, enter a short explanation for the policy.

   1. (Optional) For **Step 1: Select trusted entities**, choose **Edit** to modify the code.

   1. (Optional) For **Step 2: Add permissions**, choose **Edit** to modify the code.

   1. (Optional) For **Add tags**, choose **Add tag** to add tags to the resource.

   1. Choose **Create role**.

**Note**  
In the past, there were two managed policies for the Amazon EC2 Spot Fleet role.  
**AmazonEC2SpotFleetRole**: This is the original managed policy for the Spot Fleet role. However, we no longer recommend that you use it with Amazon Batch. This policy doesn't support Spot Instance tagging in compute environments, which is required to use the `AWSServiceRoleForBatch` service-linked role. If you previously created a Spot Fleet role with this policy, apply the new recommended policy to that role. For more information, see [Spot Instances not tagged on creation](spot-instance-no-tag.md).
**AmazonEC2SpotFleetTaggingRole**: This role provides all of the necessary permissions to tag Amazon EC2 Spot Instances. Use this role to allow Spot Instance tagging on your Amazon Batch compute environments.