Skip to main content
IAM Policy Map

AWSEC2SpotServiceRolePolicy

OperatorService-linked roleActivePermissions reviewedShow on mapCompare

Summary

Allows EC2 Spot to launch and manage spot instances

Permissions imported from the AWS Managed Policy Reference Guide; other sections pending editorial review.

Identity

ARN
arn:aws:iam::aws:policy/aws-service-role/AWSEC2SpotServiceRolePolicy
Default version
v4
Created
Last edited
Services
ec2, iam

Control-plane actions (6)

By access level: 1 List, 1 Tagging, 4 Write.

Control-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
EC25 of 8341 List, 1 Tagging, 3 Write; 1 restricted, 1 conditionalec2:CreateTags, ec2:DescribeInstances, ec2:RunInstances, ec2:StartInstances, ec2:StopInstances
IAM1 of 1901 Write; 1 restricted, 1 conditionaliam:PassRole
EC2: 5 actions
  • ec2:CreateTags (Tagging)
  • ec2:DescribeInstances (List)
  • ec2:RunInstances (Write)
  • ec2:StartInstances (Write)
  • ec2:StopInstances (Write)
IAM: 1 actions
  • iam:PassRole (Write)

Data-plane actions (0)

By access level: none.

This policy grants no actions in this plane.

Excluded and conditional actions

  • ec2:RunInstances (deny-conditional, statement 1): 1 matching actions

Resource scope and attachment

Resource scope across granted actions: all-resources.

Can be attached: No (service-linked role policy).

Why this tier

  • Grants 5 write, tagging or permissions-management actions, short of full control of any service.
  • Grants iam:PassRole, but only for scoped roles or under conditions (for example iam:PassedToService).

Guidance

Pending editorial review. The permission data on this page comes straight from AWS; this section will be filled in once a reviewed guide exists.

Same service

Same domain

Frequently asked questions

Pending editorial review. The permission data on this page comes straight from AWS; this section will be filled in once a reviewed guide exists.

Policy JSON

Download policy.json

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "ec2:DescribeInstances",
        "ec2:StartInstances",
        "ec2:StopInstances",
        "ec2:RunInstances"
      ],
      "Resource": [
        "*"
      ]
    },
    {
      "Effect": "Deny",
      "Action": [
        "ec2:RunInstances"
      ],
      "Resource": [
        "arn:aws:ec2:*:*:instance/*"
      ],
      "Condition": {
        "StringNotEquals": {
          "ec2:InstanceMarketType": "spot"
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": [
        "iam:PassRole"
      ],
      "Resource": [
        "*"
      ],
      "Condition": {
        "StringEquals": {
          "iam:PassedToService": [
            "ec2.amazonaws.com",
            "ec2.amazonaws.com.cn"
          ]
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": [
        "ec2:CreateTags"
      ],
      "Resource": "*",
      "Condition": {
        "StringEquals": {
          "ec2:CreateAction": "RunInstances"
        }
      }
    }
  ]
}

Version history

Current version v4, edited by AWS on 2018-12-12. Version history is recorded from 2026-11-11. Earlier versions are in the IAM console under Policy versions.

Attach snippets

This policy cannot be attached to users, groups or roles, so there are no attach snippets.

Sources

Pending editorial review. No editorial sources are listed yet.