EC2ImageBuilderLifecycleExecutionPolicy
Summary
The EC2ImageBuilderLifecycleExecutionPolicy policy grants permissions for Image Builder to perform actions such as deprecate or delete Image Builder image resources and their underlying resources (AMIs, snapshots) to support automated rules for image lifecycle management tasks.
Permissions imported from the AWS Managed Policy Reference Guide; other sections pending editorial review.
Identity
- ARN
arn:aws:iam::aws:policy/service-role/EC2ImageBuilderLifecycleExecutionPolicy- Default version
- v1
- Created
- Last edited
- Services
- ec2, ecr, imagebuilder, tag
Control-plane actions (14)
By access level: 2 List, 2 Read, 2 Tagging, 8 Write.
| Service | Granted | Access levels and limits | Granted by |
|---|---|---|---|
| EC2 | 10 of 834 | 2 List, 2 Tagging, 6 Write; 9 restricted, 9 conditional | ec2:CreateTags, ec2:DeleteSnapshot, ec2:DeleteTags, ec2:DeregisterImage, ec2:DescribeImageAttribute, ec2:DescribeImages, ec2:DisableImage, ec2:DisableImageDeprecation, ec2:EnableImage, ec2:EnableImageDeprecation |
| Elastic Container Registry | 2 of 65 | 1 Read, 1 Write; 2 restricted, 2 conditional | ecr:BatchDeleteImage, ecr:BatchGetImage |
| EC2 Image Builder | 1 of 77 | 1 Write; 0 restricted, 0 conditional | imagebuilder:DeleteImage |
| Resource Group Tagging | 1 of 9 | 1 Read; 0 restricted, 0 conditional | tag:GetResources |
EC2: 10 actions
- ec2:CreateTags (Tagging)
- ec2:DeleteSnapshot (Write)
- ec2:DeleteTags (Tagging)
- ec2:DeregisterImage (Write)
- ec2:DescribeImageAttribute (List)
- ec2:DescribeImages (List)
- ec2:DisableImage (Write)
- ec2:DisableImageDeprecation (Write)
- ec2:EnableImage (Write)
- ec2:EnableImageDeprecation (Write)
Elastic Container Registry: 2 actions
- ecr:BatchDeleteImage (Write)
- ecr:BatchGetImage (Read)
EC2 Image Builder: 1 actions
- imagebuilder:DeleteImage (Write)
Resource Group Tagging: 1 actions
- tag:GetResources (Read)
Data-plane actions (0)
By access level: none.
This policy grants no actions in this plane.
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: Yes, to users, groups and roles.
Why this tier
- Grants 10 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.
Related policies
Same service
- AdministratorAccess-AWSElasticBeanstalk
- AIDevOpsReleaseManagementVPCPolicy
- AmazonAppStreamServiceAccess
- AmazonBioDiscoveryServiceLinkedRolePolicy
- AmazonBraketJobsExecutionPolicy
- AmazonDataZoneEnvironmentRolePermissionsBoundary
- AmazonDataZoneProjectDeploymentPermissionsBoundary
- AmazonDataZoneProjectRolePermissionsBoundary
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
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Ec2ImagePermission",
"Effect": "Allow",
"Action": [
"ec2:EnableImage",
"ec2:DeregisterImage",
"ec2:EnableImageDeprecation",
"ec2:DescribeImageAttribute",
"ec2:DisableImage",
"ec2:DisableImageDeprecation"
],
"Resource": "arn:aws:ec2:*::image/*",
"Condition": {
"StringEquals": {
"aws:ResourceTag/CreatedBy": "EC2 Image Builder"
}
}
},
{
"Sid": "EC2DeleteSnapshotPermission",
"Effect": "Allow",
"Action": "ec2:DeleteSnapshot",
"Resource": "arn:aws:ec2:*::snapshot/*",
"Condition": {
"StringEquals": {
"aws:ResourceTag/CreatedBy": "EC2 Image Builder"
}
}
},
{
"Sid": "EC2TagsPermission",
"Effect": "Allow",
"Action": [
"ec2:DeleteTags",
"ec2:CreateTags"
],
"Resource": [
"arn:aws:ec2:*::snapshot/*",
"arn:aws:ec2:*::image/*"
],
"Condition": {
"StringEquals": {
"aws:RequestTag/DeprecatedBy": "EC2 Image Builder",
"aws:ResourceTag/CreatedBy": "EC2 Image Builder"
},
"ForAllValues:StringEquals": {
"aws:TagKeys": "DeprecatedBy"
}
}
},
{
"Sid": "ECRImagePermission",
"Effect": "Allow",
"Action": [
"ecr:BatchGetImage",
"ecr:BatchDeleteImage"
],
"Resource": "arn:aws:ecr:*:*:repository/*",
"Condition": {
"StringEquals": {
"ecr:ResourceTag/LifecycleExecutionAccess": "EC2 Image Builder"
}
}
},
{
"Sid": "ImageBuilderEC2TagServicePermission",
"Effect": "Allow",
"Action": [
"ec2:DescribeImages",
"tag:GetResources",
"imagebuilder:DeleteImage"
],
"Resource": "*"
}
]
}
Version history
Current version v1, edited by AWS on 2023-11-16. 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/service-role/EC2ImageBuilderLifecycleExecutionPolicy
aws iam attach-user-policy --user-name USER_NAME --policy-arn arn:aws:iam::aws:policy/service-role/EC2ImageBuilderLifecycleExecutionPolicy
aws iam attach-group-policy --group-name GROUP_NAME --policy-arn arn:aws:iam::aws:policy/service-role/EC2ImageBuilderLifecycleExecutionPolicyCloudFormation
Resources:
ExampleRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument: {} # replace with your trust policy
ManagedPolicyArns:
- arn:aws:iam::aws:policy/service-role/EC2ImageBuilderLifecycleExecutionPolicyTerraform
resource "aws_iam_role_policy_attachment" "service_role_ec2imagebuilderlifecycleexecutionpolicy" {
role = aws_iam_role.example.name
policy_arn = "arn:aws:iam::aws:policy/service-role/EC2ImageBuilderLifecycleExecutionPolicy"
}CDK (TypeScript)
role.addManagedPolicy(
iam.ManagedPolicy.fromAwsManagedPolicyName("service-role/EC2ImageBuilderLifecycleExecutionPolicy"),
);Sources
Pending editorial review. No editorial sources are listed yet.