Skip to main content
IAM Policy Map

AWSServiceRoleForImageBuilder

OperatorService-linked roleActivePermissions reviewedShow on mapCompare

Summary

Allows EC2ImageBuilder to call AWS services on your behalf.

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

Identity

ARN
arn:aws:iam::aws:policy/aws-service-role/AWSServiceRoleForImageBuilder
Default version
v29
Created
Last edited
Services
ec2, ecr, events, iam, imagebuilder, inspector2, kms, license-manager, logs, sns, ssm, sts

Control-plane actions (77)

By access level: 20 List, 2 Permissions management, 9 Read, 4 Tagging, 42 Write.

Control-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
EC232 of 83414 List, 1 Permissions management, 1 Tagging, 16 Write; 11 restricted, 8 conditionalec2:AttachImageWatermark, ec2:CancelExportTask, ec2:CopyImage, ec2:CreateImage, ec2:CreateLaunchTemplate, ec2:CreateLaunchTemplateVersion, ec2:CreateTags, ec2:DeregisterImage, ec2:DescribeExportImageTasks, ec2:DescribeHosts, ec2:DescribeImages, ec2:DescribeImportImageTasks and 20 more
Elastic Container Registry3 of 651 Tagging, 2 Write; 3 restricted, 3 conditionalecr:BatchDeleteImage, ecr:CreateRepository, ecr:TagResource
EventBridge5 of 711 Read, 4 Write; 5 restricted, 0 conditionalevents:DeleteRule, events:DescribeRule, events:PutRule, events:PutTargets, events:RemoveTargets
IAM2 of 1902 Write; 2 restricted, 2 conditionaliam:CreateServiceLinkedRole, iam:PassRole
EC2 Image Builder2 of 771 Tagging, 1 Write; 2 restricted, 2 conditionalimagebuilder:StartImagePipelineExecution, imagebuilder:TagResource
Inspector25 of 843 List, 1 Read, 1 Write; 3 restricted, 0 conditionalinspector2:GetOnDemandScanStatus, inspector2:ListCoverage, inspector2:ListFindings, inspector2:ListOnDemandScans, inspector2:StartOnDemandScan
KMS7 of 581 Permissions management, 1 Read, 5 Write; 7 restricted, 7 conditionalkms:CreateGrant, kms:Decrypt, kms:DescribeKey, kms:Encrypt, kms:GenerateDataKeyWithoutPlaintext, kms:ReEncryptFrom, kms:ReEncryptTo
License Manager1 of 621 Write; 0 restricted, 0 conditionallicense-manager:UpdateLicenseSpecificationsForResource
CloudWatch Logs3 of 1333 Write; 3 restricted, 0 conditionallogs:CreateLogGroup, logs:CreateLogStream, logs:PutLogEvents
Systems Manager16 of 1643 List, 6 Read, 1 Tagging, 6 Write; 5 restricted, 0 conditionalssm:AddTagsToResource, ssm:CreateAssociation, ssm:DeleteAssociation, ssm:DescribeAssociationExecutions, ssm:DescribeInstanceAssociationsStatus, ssm:DescribeInstanceInformation, ssm:GetAutomationExecution, ssm:GetCommandInvocation, ssm:GetParameter, ssm:ListCommandInvocations, ssm:ListCommands, ssm:ListInventoryEntries and 4 more
STS1 of 161 Write; 1 restricted, 0 conditionalsts:AssumeRole
EC2: 32 actions
  • ec2:AttachImageWatermark (Write)
  • ec2:CancelExportTask (Write)
  • ec2:CopyImage (Write)
  • ec2:CreateImage (Write)
  • ec2:CreateLaunchTemplate (Write)
  • ec2:CreateLaunchTemplateVersion (Write)
  • ec2:CreateTags (Tagging)
  • ec2:DeregisterImage (Write)
  • ec2:DescribeExportImageTasks (List)
  • ec2:DescribeHosts (List)
  • ec2:DescribeImages (List)
  • ec2:DescribeImportImageTasks (List)
  • ec2:DescribeInstanceAttribute (List)
  • ec2:DescribeInstanceStatus (List)
  • ec2:DescribeInstanceTypeOfferings (List)
  • ec2:DescribeInstanceTypes (List)
  • ec2:DescribeInstances (List)
  • ec2:DescribeLaunchTemplateVersions (List)
  • ec2:DescribeLaunchTemplates (List)
  • ec2:DescribeSnapshots (List)
  • ec2:DescribeSubnets (List)
  • ec2:DescribeTags (List)
  • ec2:EnableFastLaunch (Write)
  • ec2:ExportImage (Write)
  • ec2:ModifyImageAttribute (Write)
  • ec2:ModifyLaunchTemplate (Write)
  • ec2:ModifySnapshotAttribute (Permissions management)
  • ec2:RegisterImage (Write)
  • ec2:RunInstances (Write)
  • ec2:StartInstances (Write)
  • ec2:StopInstances (Write)
  • ec2:TerminateInstances (Write)
Elastic Container Registry: 3 actions
  • ecr:BatchDeleteImage (Write)
  • ecr:CreateRepository (Write)
  • ecr:TagResource (Tagging)
EventBridge: 5 actions
  • events:DeleteRule (Write)
  • events:DescribeRule (Read)
  • events:PutRule (Write)
  • events:PutTargets (Write)
  • events:RemoveTargets (Write)
IAM: 2 actions
  • iam:CreateServiceLinkedRole (Write)
  • iam:PassRole (Write)
EC2 Image Builder: 2 actions
  • imagebuilder:StartImagePipelineExecution (Write)
  • imagebuilder:TagResource (Tagging)
Inspector2: 5 actions
  • inspector2:GetOnDemandScanStatus (Read)
  • inspector2:ListCoverage (List)
  • inspector2:ListFindings (List)
  • inspector2:ListOnDemandScans (List)
  • inspector2:StartOnDemandScan (Write)
KMS: 7 actions
  • kms:CreateGrant (Permissions management)
  • kms:Decrypt (Write)
  • kms:DescribeKey (Read)
  • kms:Encrypt (Write)
  • kms:GenerateDataKeyWithoutPlaintext (Write)
  • kms:ReEncryptFrom (Write)
  • kms:ReEncryptTo (Write)
License Manager: 1 actions
  • license-manager:UpdateLicenseSpecificationsForResource (Write)
CloudWatch Logs: 3 actions
  • logs:CreateLogGroup (Write)
  • logs:CreateLogStream (Write)
  • logs:PutLogEvents (Write)
Systems Manager: 16 actions
  • ssm:AddTagsToResource (Tagging)
  • ssm:CreateAssociation (Write)
  • ssm:DeleteAssociation (Write)
  • ssm:DescribeAssociationExecutions (Read)
  • ssm:DescribeInstanceAssociationsStatus (Read)
  • ssm:DescribeInstanceInformation (Read)
  • ssm:GetAutomationExecution (Read)
  • ssm:GetCommandInvocation (Read)
  • ssm:GetParameter (Read)
  • ssm:ListCommandInvocations (List)
  • ssm:ListCommands (List)
  • ssm:ListInventoryEntries (List)
  • ssm:PutParameter (Write)
  • ssm:SendAutomationSignal (Write)
  • ssm:SendCommand (Write)
  • ssm:StopAutomationExecution (Write)
STS: 1 actions
  • sts:AssumeRole (Write)

Data-plane actions (1)

By access level: 1 Write.

Data-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
SNSAll 1 actions (see the SNS page)1 Write; 0 restricted, 0 conditionalsns:Publish

Excluded and conditional actions

No patterns are excluded by NotAction or Deny statements.

Resource scope and attachment

Resource scope across granted actions: mixed.

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

Why this tier

  • Grants 49 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:RegisterImage",
      "Resource": [
        "arn:aws:ec2:*::image/*"
      ],
      "Condition": {
        "StringEquals": {
          "aws:RequestTag/CreatedBy": "EC2 Image Builder"
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": "ec2:RegisterImage",
      "Resource": [
        "arn:aws:ec2:*::snapshot/*"
      ],
      "Condition": {
        "StringEquals": {
          "ec2:ResourceTag/CreatedBy": "EC2 Image Builder"
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": [
        "ec2:RunInstances"
      ],
      "Resource": [
        "arn:aws:ec2:*::image/*",
        "arn:aws:ec2:*::snapshot/*",
        "arn:aws:ec2:*:*:subnet/*",
        "arn:aws:ec2:*:*:network-interface/*",
        "arn:aws:ec2:*:*:security-group/*",
        "arn:aws:ec2:*:*:key-pair/*",
        "arn:aws:ec2:*:*:launch-template/*",
        "arn:aws:license-manager:*:*:license-configuration:*"
      ]
    },
    {
      "Effect": "Allow",
      "Action": [
        "ec2:RunInstances"
      ],
      "Resource": [
        "arn:aws:ec2:*:*:volume/*",
        "arn:aws:ec2:*:*:instance/*"
      ],
      "Condition": {
        "StringEquals": {
          "aws:RequestTag/CreatedBy": [
            "EC2 Image Builder",
            "EC2 Fast Launch"
          ]
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": "iam:PassRole",
      "Resource": "*",
      "Condition": {
        "StringEquals": {
          "iam:PassedToService": [
            "ec2.amazonaws.com",
            "ec2.amazonaws.com.cn",
            "vmie.amazonaws.com"
          ]
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": [
        "ec2:StopInstances",
        "ec2:StartInstances",
        "ec2:TerminateInstances"
      ],
      "Resource": "*",
      "Condition": {
        "StringEquals": {
          "ec2:ResourceTag/CreatedBy": "EC2 Image Builder"
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": [
        "ec2:CopyImage",
        "ec2:CreateImage",
        "ec2:CreateLaunchTemplate",
        "ec2:DeregisterImage",
        "ec2:DescribeImages",
        "ec2:DescribeInstanceAttribute",
        "ec2:DescribeInstanceStatus",
        "ec2:DescribeInstances",
        "ec2:DescribeInstanceTypeOfferings",
        "ec2:DescribeInstanceTypes",
        "ec2:DescribeSubnets",
        "ec2:DescribeTags",
        "ec2:ModifyImageAttribute",
        "ec2:DescribeImportImageTasks",
        "ec2:DescribeExportImageTasks",
        "ec2:DescribeSnapshots",
        "ec2:DescribeHosts"
      ],
      "Resource": "*"
    },
    {
      "Effect": "Allow",
      "Action": [
        "ec2:ModifySnapshotAttribute"
      ],
      "Resource": "arn:aws:ec2:*::snapshot/*",
      "Condition": {
        "StringEquals": {
          "ec2:ResourceTag/CreatedBy": "EC2 Image Builder"
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": [
        "ec2:CreateTags"
      ],
      "Resource": "*",
      "Condition": {
        "StringEquals": {
          "ec2:CreateAction": [
            "RunInstances",
            "CreateImage"
          ],
          "aws:RequestTag/CreatedBy": [
            "EC2 Image Builder",
            "EC2 Fast Launch"
          ]
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": [
        "ec2:CreateTags"
      ],
      "Resource": [
        "arn:aws:ec2:*::image/*",
        "arn:aws:ec2:*:*:export-image-task/*"
      ]
    },
    {
      "Effect": "Allow",
      "Action": [
        "ec2:CreateTags"
      ],
      "Resource": [
        "arn:aws:ec2:*::snapshot/*",
        "arn:aws:ec2:*:*:launch-template/*"
      ],
      "Condition": {
        "StringEquals": {
          "aws:RequestTag/CreatedBy": [
            "EC2 Image Builder",
            "EC2 Fast Launch"
          ]
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": [
        "license-manager:UpdateLicenseSpecificationsForResource"
      ],
      "Resource": "*"
    },
    {
      "Effect": "Allow",
      "Action": [
        "sns:Publish"
      ],
      "Resource": "*"
    },
    {
      "Effect": "Allow",
      "Action": [
        "ssm:ListCommands",
        "ssm:ListCommandInvocations",
        "ssm:AddTagsToResource",
        "ssm:DescribeInstanceInformation",
        "ssm:GetAutomationExecution",
        "ssm:StopAutomationExecution",
        "ssm:ListInventoryEntries",
        "ssm:SendAutomationSignal",
        "ssm:DescribeInstanceAssociationsStatus",
        "ssm:DescribeAssociationExecutions",
        "ssm:GetCommandInvocation"
      ],
      "Resource": "*"
    },
    {
      "Effect": "Allow",
      "Action": "ssm:SendCommand",
      "Resource": [
        "arn:aws:ssm:*:*:document/AWS-RunPowerShellScript",
        "arn:aws:ssm:*:*:document/AWS-RunShellScript",
        "arn:aws:ssm:*:*:document/AWSEC2-RunSysprep",
        "arn:aws:s3:::*"
      ]
    },
    {
      "Effect": "Allow",
      "Action": [
        "ssm:SendCommand"
      ],
      "Resource": [
        "arn:aws:ec2:*:*:instance/*"
      ],
      "Condition": {
        "StringEquals": {
          "ssm:resourceTag/CreatedBy": [
            "EC2 Image Builder"
          ]
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": [
        "ssm:CreateAssociation",
        "ssm:DeleteAssociation"
      ],
      "Resource": [
        "arn:aws:ssm:*:*:document/AWS-GatherSoftwareInventory",
        "arn:aws:ssm:*:*:association/*",
        "arn:aws:ec2:*:*:instance/*"
      ]
    },
    {
      "Effect": "Allow",
      "Action": [
        "kms:Encrypt",
        "kms:Decrypt",
        "kms:ReEncryptFrom",
        "kms:ReEncryptTo",
        "kms:GenerateDataKeyWithoutPlaintext"
      ],
      "Resource": "*",
      "Condition": {
        "ForAllValues:StringEquals": {
          "kms:EncryptionContextKeys": [
            "aws:ebs:id"
          ]
        },
        "StringLike": {
          "kms:ViaService": [
            "ec2.*.amazonaws.com"
          ]
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": [
        "kms:DescribeKey"
      ],
      "Resource": "*",
      "Condition": {
        "StringLike": {
          "kms:ViaService": [
            "ec2.*.amazonaws.com"
          ]
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": "kms:CreateGrant",
      "Resource": "*",
      "Condition": {
        "Bool": {
          "kms:GrantIsForAWSResource": true
        },
        "StringLike": {
          "kms:ViaService": [
            "ec2.*.amazonaws.com"
          ]
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": "sts:AssumeRole",
      "Resource": "arn:aws:iam::*:role/EC2ImageBuilderDistributionCrossAccountRole"
    },
    {
      "Effect": "Allow",
      "Action": [
        "logs:CreateLogStream",
        "logs:CreateLogGroup",
        "logs:PutLogEvents"
      ],
      "Resource": "arn:aws:logs:*:*:log-group:/aws/imagebuilder/*"
    },
    {
      "Effect": "Allow",
      "Action": [
        "ec2:CreateLaunchTemplateVersion",
        "ec2:DescribeLaunchTemplates",
        "ec2:ModifyLaunchTemplate",
        "ec2:DescribeLaunchTemplateVersions"
      ],
      "Resource": "*"
    },
    {
      "Effect": "Allow",
      "Action": [
        "ec2:ExportImage"
      ],
      "Resource": "arn:aws:ec2:*::image/*",
      "Condition": {
        "StringEquals": {
          "ec2:ResourceTag/CreatedBy": "EC2 Image Builder"
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": [
        "ec2:ExportImage"
      ],
      "Resource": "arn:aws:ec2:*:*:export-image-task/*"
    },
    {
      "Effect": "Allow",
      "Action": [
        "ec2:CancelExportTask"
      ],
      "Resource": "arn:aws:ec2:*:*:export-image-task/*",
      "Condition": {
        "StringEquals": {
          "ec2:ResourceTag/CreatedBy": "EC2 Image Builder"
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": "iam:CreateServiceLinkedRole",
      "Resource": "*",
      "Condition": {
        "StringEquals": {
          "iam:AWSServiceName": [
            "agentless.inspector2.amazonaws.com",
            "ami.inspector2.amazonaws.com",
            "ec2fastlaunch.amazonaws.com",
            "inspector2.amazonaws.com",
            "ssm.amazonaws.com"
          ]
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": [
        "ec2:EnableFastLaunch"
      ],
      "Resource": [
        "arn:aws:ec2:*::image/*",
        "arn:aws:ec2:*:*:launch-template/*"
      ],
      "Condition": {
        "StringEquals": {
          "ec2:ResourceTag/CreatedBy": "EC2 Image Builder"
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": [
        "ec2:AttachImageWatermark"
      ],
      "Resource": "arn:aws:ec2:*::image/*",
      "Condition": {
        "StringEquals": {
          "ec2:ResourceTag/CreatedBy": "EC2 Image Builder"
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": [
        "inspector2:ListCoverage",
        "inspector2:ListFindings"
      ],
      "Resource": "*"
    },
    {
      "Effect": "Allow",
      "Action": [
        "inspector2:StartOnDemandScan",
        "inspector2:GetOnDemandScanStatus",
        "inspector2:ListOnDemandScans"
      ],
      "Resource": [
        "arn:aws:inspector2:*:*:*"
      ]
    },
    {
      "Effect": "Allow",
      "Action": [
        "ecr:CreateRepository"
      ],
      "Resource": "*",
      "Condition": {
        "StringEquals": {
          "aws:RequestTag/CreatedBy": "EC2 Image Builder"
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": [
        "ecr:TagResource"
      ],
      "Resource": "arn:aws:ecr:*:*:repository/image-builder-*",
      "Condition": {
        "StringEquals": {
          "aws:RequestTag/CreatedBy": "EC2 Image Builder"
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": [
        "ecr:BatchDeleteImage"
      ],
      "Resource": "arn:aws:ecr:*:*:repository/image-builder-*",
      "Condition": {
        "StringEquals": {
          "ecr:ResourceTag/CreatedBy": "EC2 Image Builder"
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": [
        "events:DeleteRule",
        "events:DescribeRule",
        "events:PutRule",
        "events:PutTargets",
        "events:RemoveTargets"
      ],
      "Resource": [
        "arn:aws:events:*:*:rule/ImageBuilder-*"
      ]
    },
    {
      "Effect": "Allow",
      "Action": [
        "ssm:GetParameter",
        "ssm:PutParameter"
      ],
      "Resource": "arn:aws:ssm:*:*:parameter/imagebuilder/*"
    },
    {
      "Effect": "Allow",
      "Action": [
        "ssm:GetParameter"
      ],
      "Resource": "arn:aws:ssm:*::parameter/aws/service/*"
    },
    {
      "Effect": "Allow",
      "Action": "imagebuilder:StartImagePipelineExecution",
      "Resource": "arn:aws:imagebuilder:*:*:image-pipeline/*",
      "Condition": {
        "StringEquals": {
          "aws:ResourceAccount": "${aws:PrincipalAccount}"
        }
      }
    },
    {
      "Effect": "Allow",
      "Action": "imagebuilder:TagResource",
      "Resource": "arn:aws:imagebuilder:*:*:image-pipeline/*",
      "Condition": {
        "StringEquals": {
          "aws:ResourceAccount": "${aws:PrincipalAccount}"
        }
      }
    }
  ]
}

Version history

Current version v29, edited by AWS on 2026-10-27. 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.