Skip to main content
IAM Policy Map

AmazonInspector2AmiScanServiceRolePolicy

OperatorService-linked roleActivePermissions reviewedShow on mapCompare

Summary

Grants Amazon Inspector access to AWS services needed to perform security assessments for AMI

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

Identity

ARN
arn:aws:iam::aws:policy/aws-service-role/AmazonInspector2AmiScanServiceRolePolicy
Default version
v1
Created
Last edited
Services
ebs, ec2, events, inspector2, kms, organizations

Control-plane actions (20)

By access level: 7 List, 4 Read, 9 Write.

Control-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
EC23 of 8343 List; 0 restricted, 0 conditionalec2:DescribeImages, ec2:DescribeSnapshots, ec2:DescribeVolumes
EventBridge6 of 711 List, 1 Read, 4 Write; 6 restricted, 0 conditionalevents:DeleteRule, events:DescribeRule, events:ListTargetsByRule, events:PutRule, events:PutTargets, events:RemoveTargets
Inspector24 of 844 Write; 0 restricted, 0 conditionalinspector2:AssociateMember, inspector2:Disable, inspector2:Enable, inspector2:EnableDelegatedAdminAccount
KMS3 of 581 List, 1 Read, 1 Write; 3 restricted, 2 conditionalkms:Decrypt, kms:DescribeKey, kms:ListResourceTags
Organizations4 of 632 List, 2 Read; 1 restricted, 1 conditionalorganizations:DescribeAccount, organizations:DescribeOrganization, organizations:ListAccounts, organizations:ListDelegatedAdministrators
EC2: 3 actions
  • ec2:DescribeImages (List)
  • ec2:DescribeSnapshots (List)
  • ec2:DescribeVolumes (List)
EventBridge: 6 actions
  • events:DeleteRule (Write)
  • events:DescribeRule (Read)
  • events:ListTargetsByRule (List)
  • events:PutRule (Write)
  • events:PutTargets (Write)
  • events:RemoveTargets (Write)
Inspector2: 4 actions
  • inspector2:AssociateMember (Write)
  • inspector2:Disable (Write)
  • inspector2:Enable (Write)
  • inspector2:EnableDelegatedAdminAccount (Write)
KMS: 3 actions
  • kms:Decrypt (Write)
  • kms:DescribeKey (Read)
  • kms:ListResourceTags (List)
Organizations: 4 actions
  • organizations:DescribeAccount (Read)
  • organizations:DescribeOrganization (Read)
  • organizations:ListAccounts (List)
  • organizations:ListDelegatedAdministrators (List)

Data-plane actions (2)

By access level: 2 Read.

Data-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
Elastic Block Store2 of 42 Read; 2 restricted, 0 conditionalebs:GetSnapshotBlock, ebs:ListSnapshotBlocks
Elastic Block Store: 2 actions
  • ebs:GetSnapshotBlock (Read)
  • ebs:ListSnapshotBlocks (Read)

Excluded and conditional actions

  • ebs:GetSnapshotBlock (deny-conditional, statement 6): 1 matching actions
  • ebs:ListSnapshotBlocks (deny-conditional, statement 6): 1 matching actions
  • kms:Decrypt (deny-conditional, statement 7): 1 matching actions

Resource scope and attachment

Resource scope across granted actions: mixed.

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

Why this tier

  • Grants 9 write, tagging or permissions-management actions, short of full control of any service.

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": [
    {
      "Sid": "ManagedRules",
      "Effect": "Allow",
      "Action": [
        "events:DeleteRule",
        "events:DescribeRule",
        "events:ListTargetsByRule",
        "events:PutRule",
        "events:PutTargets",
        "events:RemoveTargets"
      ],
      "Resource": [
        "arn:aws:events:*:*:rule/DO-NOT-DELETE-AmazonInspector*ManagedRule"
      ]
    },
    {
      "Sid": "AllowInspectorEnablementForAwsOrgPolicy",
      "Effect": "Allow",
      "Action": [
        "inspector2:AssociateMember",
        "inspector2:Disable",
        "inspector2:Enable",
        "inspector2:EnableDelegatedAdminAccount"
      ],
      "Resource": "*"
    },
    {
      "Sid": "AllowInspectorServiceGetAwsOrg",
      "Effect": "Allow",
      "Action": [
        "organizations:DescribeAccount",
        "organizations:DescribeOrganization",
        "organizations:ListAccounts"
      ],
      "Resource": "*"
    },
    {
      "Sid": "AllowInspectorServiceDelegatedAdminFromAwsOrg",
      "Effect": "Allow",
      "Action": [
        "organizations:ListDelegatedAdministrators"
      ],
      "Resource": "*",
      "Condition": {
        "StringLikeIfExists": {
          "organizations:ServicePrincipal": [
            "ami.inspector2.amazonaws.com",
            "inspector2.amazonaws.com"
          ]
        }
      }
    },
    {
      "Sid": "AmiIdentification",
      "Effect": "Allow",
      "Action": [
        "ec2:DescribeImages",
        "ec2:DescribeSnapshots",
        "ec2:DescribeVolumes"
      ],
      "Resource": "*"
    },
    {
      "Sid": "GetSnapshotData",
      "Effect": "Allow",
      "Action": [
        "ebs:GetSnapshotBlock",
        "ebs:ListSnapshotBlocks"
      ],
      "Resource": "arn:aws:ec2:*:*:snapshot/*"
    },
    {
      "Sid": "DenyGetSnapshotDataOnExcludedSnapshots",
      "Effect": "Deny",
      "Action": [
        "ebs:GetSnapshotBlock",
        "ebs:ListSnapshotBlocks"
      ],
      "Resource": "arn:aws:ec2:*:*:snapshot/*",
      "Condition": {
        "StringEquals": {
          "aws:ResourceTag/InspectorEc2Exclusion": "true"
        }
      }
    },
    {
      "Sid": "DenyKmsDecryptForExcludedKeys",
      "Effect": "Deny",
      "Action": "kms:Decrypt",
      "Resource": "arn:aws:kms:*:*:key/*",
      "Condition": {
        "StringEquals": {
          "aws:ResourceTag/InspectorEc2Exclusion": "true"
        }
      }
    },
    {
      "Sid": "DecryptSnapshotBlocksVolContext",
      "Effect": "Allow",
      "Action": "kms:Decrypt",
      "Resource": "arn:aws:kms:*:*:key/*",
      "Condition": {
        "StringEquals": {
          "aws:ResourceAccount": "${aws:PrincipalAccount}"
        },
        "StringLike": {
          "kms:EncryptionContext:aws:ebs:id": "vol-*",
          "kms:ViaService": "ec2.*.amazonaws.com"
        }
      }
    },
    {
      "Sid": "DecryptSnapshotBlocksSnapContext",
      "Effect": "Allow",
      "Action": "kms:Decrypt",
      "Resource": "arn:aws:kms:*:*:key/*",
      "Condition": {
        "StringEquals": {
          "aws:ResourceAccount": "${aws:PrincipalAccount}"
        },
        "StringLike": {
          "kms:EncryptionContext:aws:ebs:id": "snap-*",
          "kms:ViaService": "ec2.*.amazonaws.com"
        }
      }
    },
    {
      "Sid": "DescribeKeysForEbsOperations",
      "Effect": "Allow",
      "Action": "kms:DescribeKey",
      "Resource": "arn:aws:kms:*:*:key/*",
      "Condition": {
        "StringEquals": {
          "aws:ResourceAccount": "${aws:PrincipalAccount}"
        },
        "StringLike": {
          "kms:ViaService": "ec2.*.amazonaws.com"
        }
      }
    },
    {
      "Sid": "ListKeyResourceTags",
      "Effect": "Allow",
      "Action": "kms:ListResourceTags",
      "Resource": "arn:aws:kms:*:*:key/*"
    }
  ]
}

Version history

Current version v1, edited by AWS on 2026-07-30. 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.