EC2ImageBuilderLifecycleExecutionPolicy
Description: 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.
EC2ImageBuilderLifecycleExecutionPolicy
is an AWS managed policy.
Using this policy
You can attach EC2ImageBuilderLifecycleExecutionPolicy
to your users, groups, and roles.
Policy details
-
Type: Service role policy
-
Creation time: November 16, 2023, 23:23 UTC
-
Edited time: November 16, 2023, 23:23 UTC
-
ARN:
arn:aws:iam::aws:policy/service-role/EC2ImageBuilderLifecycleExecutionPolicy
Policy version
Policy version: v1 (default)
The policy's default version is the version that defines the permissions for the policy. When a user or role with the policy makes a request to access an AWS resource, AWS checks the default version of the policy to determine whether to allow the request.
JSON policy document
{ "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" : "*" } ] }