EC2FastLaunchServiceRolePolicy

Last Modified

Mar 12, 2026

March 12, 2026 at 09:28 PM UTC

Version

v7

Total Versions

4

Created

Feb 12, 2026

Actions

33

Risk

Medium

The same capabilities in a scoped form, resource policy writes, reads across all data, or full access to a whole service. Read from this policy document alone: trust policies, boundaries and SCPs in your account still decide what actually succeeds. How this is assessed

  • Medium

    Can launch resources that run as a more privileged role

    Grants the actions of 1 documented escalation path, but only on named resources or under a condition. Review that scope before trusting it.

    • ec2-001iam:PassRole + ec2:RunInstancesscoped
      • iam:PassRole: condition iam:PassedToService

    Use with caution: Check which roles, users or policies fall inside the scope shown above. Within it the escalation works as documented, so keep privileged principals out of it.

IAM Access Analyzer (1)

  • Suggestion / EQUIVALENT_TO_NULL_FALSE

    We recommend replacing the key aws:RequestTag/CreatedByLaunchTemplateVersion in the condition block of StringLike with {aws:RequestTag/CreatedByLaunchTemplateVersion: false} to ensure better enforcement of the condition. AWS docs

Policy Document

View on GitHub
{
  "PolicyVersion": {
    "Document": {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Sid": "AllowRunInstances",
          "Effect": "Allow",
          "Action": [
            "ec2:RunInstances"
          ],
          "Resource": [
            "arn:aws:ec2:*:*:subnet/*",
            "arn:aws:ec2:*:*:network-interface/*",
            "arn:aws:ec2:*::image/*",
            "arn:aws:ec2:*:*:key-pair/*",
            "arn:aws:ec2:*:*:security-group/*",
            "arn:aws:ec2:*:*:launch-template/*",
            "arn:aws:license-manager:*:*:license-configuration:*"
          ]
        },
        {
          "Sid": "AllowRunInstancesOnFastLaunchCreatedResources",
          "Effect": "Allow",
          "Action": [
            "ec2:RunInstances"
          ],
          "Resource": [
            "arn:aws:ec2:*:*:volume/*",
            "arn:aws:ec2:*:*:instance/*"
          ],
          "Condition": {
            "StringEquals": {
              "aws:RequestTag/CreatedBy": "EC2 Fast Launch"
            }
          }
        },
        {
          "Sid": "AllowPassRole",
          "Effect": "Allow",
          "Action": "iam:PassRole",
          "Resource": "*",
          "Condition": {
            "StringEquals": {
              "iam:PassedToService": [
                "ec2.amazonaws.com",
                "ec2.amazonaws.com.cn"
              ]
            }
          }
        },
        {
          "Sid": "AllowStopAndTerminateInstances",
          "Effect": "Allow",
          "Action": [
            "ec2:StopInstances",
            "ec2:TerminateInstances"
          ],
          "Resource": [
            "arn:aws:ec2:*:*:instance/*"
          ],
          "Condition": {
            "StringEquals": {
              "aws:ResourceTag/CreatedBy": "EC2 Fast Launch"
            }
          }
        },
        {
          "Sid": "AllowCreateSnapshot",
          "Effect": "Allow",
          "Action": "ec2:CreateSnapshot",
          "Resource": [
            "arn:aws:ec2:*:*:volume/*"
          ],
          "Condition": {
            "StringEquals": {
              "aws:ResourceTag/CreatedBy": "EC2 Fast Launch"
            }
          }
        },
        {
          "Sid": "AllowCreateTaggedSnapshot",
          "Effect": "Allow",
          "Action": "ec2:CreateSnapshot",
          "Resource": [
            "arn:aws:ec2:*:*:snapshot/*"
          ],
          "Condition": {
            "StringEquals": {
              "aws:RequestTag/CreatedBy": "EC2 Fast Launch"
            },
            "StringLike": {
              "aws:RequestTag/CreatedByLaunchTemplateVersion": "*"
            },
            "ForAnyValue:StringEquals": {
              "aws:TagKeys": [
                "CreatedByLaunchTemplateName",
                "CreatedByLaunchTemplateId"
              ]
            }
          }
        },
        {
          "Sid": "AllowCreateLaunchTemplate",
          "Effect": "Allow",
          "Action": "ec2:CreateLaunchTemplate",
          "Resource": "arn:aws:ec2:*:*:launch-template/*",
          "Condition": {
            "StringEquals": {
              "aws:RequestTag/CreatedBy": "EC2 Fast Launch"
            }
          }
        },
        {
          "Sid": "AllowCreateTags",
          "Effect": "Allow",
          "Action": "ec2:CreateTags",
          "Resource": [
            "arn:aws:ec2:*:*:volume/*",
            "arn:aws:ec2:*:*:instance/*",
            "arn:aws:ec2:*:*:snapshot/*",
            "arn:aws:ec2:*:*:launch-template/*"
          ],
          "Condition": {
            "StringEquals": {
              "ec2:CreateAction": [
                "CreateSnapshot",
                "RunInstances",
                "CreateLaunchTemplate"
              ]
            }
          }
        },
        {
          "Sid": "AllowDeleteSnapshots",
          "Effect": "Allow",
          "Action": [
            "ec2:DeleteSnapshot"
          ],
          "Resource": [
            "arn:aws:ec2:*:*:snapshot/*"
          ],
          "Condition": {
            "StringEquals": {
              "aws:ResourceTag/CreatedBy": "EC2 Fast Launch"
            }
          }
        },
        {
          "Sid": "AllowDeleteVolumes",
          "Effect": "Allow",
          "Action": [
            "ec2:DeleteVolume"
          ],
          "Resource": [
            "arn:aws:ec2:*:*:volume/*"
          ],
          "Condition": {
            "StringEquals": {
              "aws:ResourceTag/CreatedBy": "EC2 Fast Launch"
            }
          }
        },
        {
          "Sid": "AllowDeleteNetworkInterfaces",
          "Effect": "Allow",
          "Action": [
            "ec2:DeleteNetworkInterface"
          ],
          "Resource": [
            "arn:aws:ec2:*:*:network-interface/*"
          ],
          "Condition": {
            "StringEquals": {
              "aws:ResourceTag/CreatedBy": "EC2 Fast Launch"
            }
          }
        },
        {
          "Sid": "AllowDescribeActions",
          "Effect": "Allow",
          "Action": [
            "ec2:DescribeImages",
            "ec2:DescribeSnapshots",
            "ec2:DescribeSubnets",
            "ec2:DescribeInstanceAttribute",
            "ec2:DescribeInstanceStatus",
            "ec2:DescribeInstances",
            "ec2:DescribeInstanceTypeOfferings",
            "ec2:DescribeLaunchTemplateVersions",
            "ec2:DescribeLaunchTemplates",
            "ec2:DescribeVolumes",
            "ec2:DescribeNetworkInterfaces",
            "cloudformation:DescribeStacks"
          ],
          "Resource": "*"
        },
        {
          "Sid": "AllowPutMetricData",
          "Effect": "Allow",
          "Action": "cloudwatch:PutMetricData",
          "Resource": "*",
          "Condition": {
            "StringEquals": {
              "cloudwatch:namespace": "AWS/EC2"
            }
          }
        },
        {
          "Sid": "AllowEventsRuleMutations",
          "Effect": "Allow",
          "Action": [
            "events:DeleteRule",
            "events:RemoveTargets",
            "events:PutRule",
            "events:PutTargets"
          ],
          "Condition": {
            "StringEquals": {
              "events:ManagedBy": "ec2fastlaunch.amazonaws.com"
            }
          },
          "Resource": [
            "arn:aws:events:*:*:rule/FastLaunch*"
          ]
        },
        {
          "Sid": "AllowEventsRuleNonMutations",
          "Effect": "Allow",
          "Action": [
            "events:ListTargetsByRule",
            "events:DescribeRule"
          ],
          "Resource": [
            "arn:aws:events:*:*:rule/FastLaunch*"
          ]
        },
        {
          "Sid": "AllowKMSActions",
          "Effect": "Allow",
          "Action": "kms:ListRetirableGrants",
          "Resource": "*"
        },
        {
          "Sid": "AllowDeleteFastLaunchLaunchTemplates",
          "Effect": "Allow",
          "Action": [
            "ec2:DeleteLaunchTemplate"
          ],
          "Resource": "*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceTag/CreatedBy": "EC2 Fast Launch"
            }
          }
        }
      ]
    },
    "VersionId": "v7",
    "IsDefaultVersion": true,
    "CreateDate": "2026-02-12T17:57:11+00:00"
  }
}

Version History (9 recorded)

Raw history
v7updated

scope changed, no action added or removed

32a1a3d

EC2FastLaunchServiceRolePolicy - Policy Version v7

No recorded action delta - this version predates the change index. View the raw diff.

Feb 12, 2026

34cc7f8

EC2FastLaunchServiceRolePolicy - Policy Version v5

No recorded action delta - this version predates the change index. View the raw diff.

Feb 12, 2026

cd3750a

EC2FastLaunchServiceRolePolicy - Policy Version v3

No recorded action delta - this version predates the change index. View the raw diff.

Jul 18, 2025

07f8131

EC2FastLaunchServiceRolePolicy - Policy Version v2

No recorded action delta - this version predates the change index. View the raw diff.

Jul 18, 2025

cd89656

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

May 14, 2025

eee7259

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Sep 18, 2024

aafbae9

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

May 13, 2024

1b36617

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Jan 10, 2022

d7e27d2