AWSMarketplaceImageBuildFullAccess
Summary
Provides full access to the AWS Marketplace Private Image Build feature, plus permissions to add tags to images and to launch and terminate EC2 instances. The AWS Marketplace Buyer Guide lists the policy as deprecated.
Permissions imported from the AWS Managed Policy Reference Guide; other sections reviewed against the listed AWS sources.
Identity
- ARN
arn:aws:iam::aws:policy/AWSMarketplaceImageBuildFullAccess- Default version
- v3
- Created
- Last edited
- Services
- aws-marketplace, ec2, iam, s3, sns, ssm
Control-plane actions (23)
By access level: 6 List, 7 Read, 1 Tagging, 9 Write.
| Service | Granted | Access levels and limits | Granted by |
|---|---|---|---|
| Marketplace | 3 of 97 | 2 Read, 1 Write; 0 restricted, 0 conditional | aws-marketplace:DescribeBuilds, aws-marketplace:ListBuilds, aws-marketplace:StartBuild |
| EC2 | 12 of 834 | 5 List, 1 Tagging, 6 Write; 2 restricted, 1 conditional | ec2:CopyImage, ec2:CreateImage, ec2:CreateTags, ec2:DeleteSnapshot, ec2:DeregisterImage, ec2:DescribeImages, ec2:DescribeInstanceStatus, ec2:DescribeSecurityGroups, ec2:DescribeSnapshots, ec2:DescribeSubnets, ec2:RunInstances, ec2:TerminateInstances |
| IAM | 3 of 190 | 2 Read, 1 Write; 1 restricted, 1 conditional | iam:GetInstanceProfile, iam:GetRole, iam:PassRole |
| SNS | 1 of 40 | 1 Read; 0 restricted, 0 conditional | sns:GetTopicAttributes |
| Systems Manager | 4 of 164 | 1 List, 2 Read, 1 Write; 1 restricted, 0 conditional | ssm:DescribeDocument, ssm:GetAutomationExecution, ssm:ListDocuments, ssm:StartAutomationExecution |
Marketplace: 3 actions
- aws-marketplace:DescribeBuilds (Read)
- aws-marketplace:ListBuilds (Read)
- aws-marketplace:StartBuild (Write)
EC2: 12 actions
- ec2:CopyImage (Write)
- ec2:CreateImage (Write)
- ec2:CreateTags (Tagging)
- ec2:DeleteSnapshot (Write)
- ec2:DeregisterImage (Write)
- ec2:DescribeImages (List)
- ec2:DescribeInstanceStatus (List)
- ec2:DescribeSecurityGroups (List)
- ec2:DescribeSnapshots (List)
- ec2:DescribeSubnets (List)
- ec2:RunInstances (Write)
- ec2:TerminateInstances (Write)
IAM: 3 actions
- iam:GetInstanceProfile (Read)
- iam:GetRole (Read)
- iam:PassRole (Write)
SNS: 1 actions
- sns:GetTopicAttributes (Read)
Systems Manager: 4 actions
- ssm:DescribeDocument (Read)
- ssm:GetAutomationExecution (Read)
- ssm:ListDocuments (List)
- ssm:StartAutomationExecution (Write)
Data-plane actions (3)
By access level: 1 List, 1 Read, 1 Write.
| Service | Granted | Access levels and limits | Granted by |
|---|---|---|---|
| S3 | 2 of 25 | 1 List, 1 Read; 2 restricted, 0 conditional | s3:GetObject, s3:ListBucket |
| SNS | All 1 actions (see the SNS page) | 1 Write; 1 restricted, 0 conditional | sns:Publish |
S3: 2 actions
- s3:GetObject (Read)
- s3:ListBucket (List)
Excluded and conditional actions
ec2:CreateTags(deny-conditional, statement 9): 1 matching actions
Resource scope and attachment
Resource scope across granted actions: mixed.
Can be attached: Yes, to users, groups and roles.
Why this tier
- Grants 11 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
Practical scope
10 statements (9 Allow, 1 Deny). Allowed: aws-marketplace:ListBuilds, aws-marketplace:StartBuild and aws-marketplace:DescribeBuilds; ec2:TerminateInstances (conditioned on ec2:ResourceTag/marketplace-image-build:build-id), plus ec2:RunInstances, ec2:CreateImage, ec2:CopyImage, ec2:DeregisterImage and ec2:DeleteSnapshot on "*"; ssm:StartAutomationExecution on automation-definition ARNs in 8 listed Regions; two iam:PassRole statements; s3:GetObject and s3:ListBucket on ARNs matching arn:aws:s3:::*image-build*; sns:Publish on ARNs matching arn:aws:sns:*:*:*image-build*; and ec2:CreateTags. One Deny covers ec2:CreateTags on arn:aws:ec2:*:*:instance/* with StringLike on aws:RequestTag/marketplace-image-build:build-id ("*") and StringNotEquals on ec2:CreateAction (RunInstances).
Use cases
- Historically, run AWS Marketplace Private Image Build to create private images. AWS Marketplace has discontinued that delivery method, so check the Buyer Guide before attaching this policy to new identities.
Best practices
- AWS managed policies don't grant least privilege permissions. The IAM User Guide says to consider the security risk of granting principals more permissions than they need, and suggests using Access Analyzer to see which permissions principals use, then writing a custom policy or generating one with only the required permissions.
Security considerations
- The AWS Marketplace Buyer Guide lists AWSMarketplaceImageBuildFullAccess as deprecated. Its update table has an entry dated May 30, 2024 saying AWS Marketplace discontinued the Private Image Build delivery method, so the policy was also discontinued.
- It allows ec2:RunInstances, ec2:TerminateInstances (with a StringLike condition on ec2:ResourceTag/marketplace-image-build:build-id), ec2:DeregisterImage, ec2:CopyImage, ec2:CreateImage and ec2:DeleteSnapshot, so it can launch instances and delete images and snapshots.
- iam:PassRole is allowed on role ARNs matching arn:aws:iam::*:role/*Automation* and arn:aws:iam::*:role/*Instance* with iam:PassedToService ec2.amazonaws.com, and on "*" with iam:PassedToService ssm.amazonaws.com and iam:AssociatedResourceARN matching the listed automation-definition ARNs. The IAM User Guide warns that a passed role can carry more permissions than the person passing it.
- s3:GetObject and s3:ListBucket are allowed on ARNs matching arn:aws:s3:::*image-build*, and sns:Publish on ARNs matching arn:aws:sns:*:*:*image-build*. These are patterns, not exact names.
- You cannot change the permissions in an AWS managed policy. If AWS updates the policy, the update affects every user, group and role it is attached to.
Assignment guidance
You can attach this policy to your users, groups and roles. The reference page also links to guidance on creating a permission set using AWS managed policies in IAM Identity Center. The Buyer Guide marks the policy as deprecated, so check whether it is still needed before attaching it.
Related policies
Same service
- AccessAnalyzerServiceRolePolicy
- AccountManagementFromVercel
- AdministratorAccess-AWSElasticBeanstalk
- AIDevOpsReleaseManagementVPCPolicy
- AIOpsOperatorAccess
- AmazonApplicationRecoveryControllerRegionSwitchPlanExecutionPolicy
- AmazonAppStreamServiceAccess
- AmazonBioDiscoveryServiceLinkedRolePolicy
Same domain
Frequently asked questions
- When should I attach AWSMarketplaceImageBuildFullAccess?
- The reference page says you can attach AWSMarketplaceImageBuildFullAccess to your users, groups and roles. However, the AWS Marketplace Buyer Guide lists it as deprecated and says AWS Marketplace discontinued the Private Image Build delivery method, so check whether you still need it before attaching it.
- What does AWSMarketplaceImageBuildFullAccess grant?
- It allows aws-marketplace build actions, EC2 actions such as ec2:RunInstances, ec2:CreateImage and ec2:TerminateInstances, SSM automation, s3:GetObject and s3:ListBucket on ARNs matching arn:aws:s3:::*image-build*, sns:Publish on ARNs matching arn:aws:sns:*:*:*image-build*, and iam:PassRole in two statements. 10 statements in total.
- What are the security risks of AWSMarketplaceImageBuildFullAccess?
- It can launch and terminate instances, delete images and snapshots, and pass roles to EC2 and SSM. The Buyer Guide lists it as deprecated. AWS managed policies don't grant least privilege permissions, and you must consider the security risk of granting principals more permissions than they need. AWS updates to the policy affect every identity it is attached to.
Policy JSON
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"aws-marketplace:ListBuilds",
"aws-marketplace:StartBuild",
"aws-marketplace:DescribeBuilds"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": "ec2:TerminateInstances",
"Resource": "*",
"Condition": {
"StringLike": {
"ec2:ResourceTag/marketplace-image-build:build-id": "*"
}
}
},
{
"Effect": "Allow",
"Action": "iam:PassRole",
"Resource": [
"arn:aws:iam::*:role/*Automation*",
"arn:aws:iam::*:role/*Instance*"
],
"Condition": {
"StringEquals": {
"iam:PassedToService": [
"ec2.amazonaws.com"
]
}
}
},
{
"Effect": "Allow",
"Action": [
"ssm:GetAutomationExecution",
"ssm:ListDocuments",
"ssm:DescribeDocument",
"ec2:DeregisterImage",
"ec2:CopyImage",
"ec2:DescribeSnapshots",
"ec2:DescribeSecurityGroups",
"ec2:DescribeImages",
"ec2:DescribeSubnets",
"ec2:DeleteSnapshot",
"ec2:CreateImage",
"ec2:RunInstances",
"ec2:DescribeInstanceStatus",
"sns:GetTopicAttributes",
"iam:GetRole",
"iam:GetInstanceProfile"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::*image-build*"
]
},
{
"Effect": "Allow",
"Action": [
"ec2:CreateTags"
],
"Resource": [
"arn:aws:ec2:*::image/*",
"arn:aws:ec2:*:*:instance/*"
]
},
{
"Effect": "Allow",
"Action": [
"sns:Publish"
],
"Resource": [
"arn:aws:sns:*:*:*image-build*"
]
},
{
"Effect": "Allow",
"Action": [
"ssm:StartAutomationExecution"
],
"Resource": [
"arn:aws:ssm:eu-central-1:906690553262:automation-definition/*",
"arn:aws:ssm:us-east-1:058657716661:automation-definition/*",
"arn:aws:ssm:ap-northeast-1:340648487307:automation-definition/*",
"arn:aws:ssm:eu-west-1:564714592864:automation-definition/*",
"arn:aws:ssm:us-west-2:243045473901:automation-definition/*",
"arn:aws:ssm:ap-southeast-2:362149219987:automation-definition/*",
"arn:aws:ssm:eu-west-2:587945719687:automation-definition/*",
"arn:aws:ssm:us-east-2:134937423163:automation-definition/*"
]
},
{
"Effect": "Allow",
"Action": [
"iam:PassRole"
],
"Resource": [
"*"
],
"Condition": {
"StringLike": {
"iam:PassedToService": [
"ssm.amazonaws.com"
],
"iam:AssociatedResourceARN": [
"arn:aws:ssm:eu-central-1:906690553262:automation-definition/*",
"arn:aws:ssm:us-east-1:058657716661:automation-definition/*",
"arn:aws:ssm:ap-northeast-1:340648487307:automation-definition/*",
"arn:aws:ssm:eu-west-1:564714592864:automation-definition/*",
"arn:aws:ssm:us-west-2:243045473901:automation-definition/*",
"arn:aws:ssm:ap-southeast-2:362149219987:automation-definition/*",
"arn:aws:ssm:eu-west-2:587945719687:automation-definition/*",
"arn:aws:ssm:us-east-2:134937423163:automation-definition/*"
]
}
}
},
{
"Effect": "Deny",
"Action": [
"ec2:CreateTags"
],
"Resource": [
"arn:aws:ec2:*:*:instance/*"
],
"Condition": {
"StringLike": {
"aws:RequestTag/marketplace-image-build:build-id": "*"
},
"StringNotEquals": {
"ec2:CreateAction": "RunInstances"
}
}
}
]
}
Version history
Current version v3, edited by AWS on 2022-03-04. Version history is recorded from 2026-11-11. Earlier versions are in the IAM console under Policy versions.
Attach snippets
AWS CLI
aws iam attach-role-policy --role-name ROLE_NAME --policy-arn arn:aws:iam::aws:policy/AWSMarketplaceImageBuildFullAccess
aws iam attach-user-policy --user-name USER_NAME --policy-arn arn:aws:iam::aws:policy/AWSMarketplaceImageBuildFullAccess
aws iam attach-group-policy --group-name GROUP_NAME --policy-arn arn:aws:iam::aws:policy/AWSMarketplaceImageBuildFullAccessCloudFormation
Resources:
ExampleRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument: {} # replace with your trust policy
ManagedPolicyArns:
- arn:aws:iam::aws:policy/AWSMarketplaceImageBuildFullAccessTerraform
resource "aws_iam_role_policy_attachment" "awsmarketplaceimagebuildfullaccess" {
role = aws_iam_role.example.name
policy_arn = "arn:aws:iam::aws:policy/AWSMarketplaceImageBuildFullAccess"
}CDK (TypeScript)
role.addManagedPolicy(
iam.ManagedPolicy.fromAwsManagedPolicyName("AWSMarketplaceImageBuildFullAccess"),
);Sources
- AWSMarketplaceImageBuildFullAccess (AWS Managed Policy Reference Guide) (retrieved ; supports summary, practicalScope, useCases, securityConsiderations, assignmentGuidance, faqs)
- AWS managed policies for AWS Marketplace buyers (AWS Marketplace Buyer Guide) (retrieved ; supports summary, useCases, securityConsiderations, assignmentGuidance, faqs)
- Grant a user permissions to pass a role to an AWS service (IAM User Guide) (retrieved ; supports securityConsiderations)
- Managed policies and inline policies (IAM User Guide) (retrieved ; supports securityConsiderations, faqs)
- AWS managed policies for job functions (IAM User Guide) (retrieved ; supports bestPractices, faqs)