Actions, resources, and condition keys for Amazon EC2 Image Builder - Service Authorization Reference
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Actions, resources, and condition keys for Amazon EC2 Image Builder

Amazon EC2 Image Builder (service prefix: imagebuilder) provides the following service-specific resources, actions, and condition context keys for use in IAM permission policies.

References:

Actions defined by Amazon EC2 Image Builder

You can specify the following actions in the Action element of an IAM policy statement. Use policies to grant permissions to perform an operation in Amazon. When you use an action in a policy, you usually allow or deny access to the API operation or CLI command with the same name. However, in some cases, a single action controls access to more than one operation. Alternatively, some operations require several different actions.

The Resource types column of the Actions table indicates whether each action supports resource-level permissions. If there is no value for this column, you must specify all resources ("*") to which the policy applies in the Resource element of your policy statement. If the column includes a resource type, then you can specify an ARN of that type in a statement with that action. If the action has one or more required resources, the caller must have permission to use the action with those resources. Required resources are indicated in the table with an asterisk (*). If you limit resource access with the Resource element in an IAM policy, you must include an ARN or pattern for each required resource type. Some actions support multiple resource types. If the resource type is optional (not indicated as required), then you can choose to use one of the optional resource types.

The Condition keys column of the Actions table includes keys that you can specify in a policy statement's Condition element. For more information on the condition keys that are associated with resources for the service, see the Condition keys column of the Resource types table.

Note

Resource condition keys are listed in the Resource types table. You can find a link to the resource type that applies to an action in the Resource types (*required) column of the Actions table. The resource type in the Resource types table includes the Condition keys column, which are the resource condition keys that apply to an action in the Actions table.

For details about the columns in the following table, see Actions table.

Actions Description Access level Resource types (*required) Condition keys Dependent actions
CancelImageCreation Grants permission to cancel an image creation Write

image*

CancelLifecycleExecution Grants permission to cancel a lifecycle execution Write

lifecycleExecution*

CreateComponent Grants permission to create a new component Write

component*

aws:RequestTag/${TagKey}

aws:TagKeys

iam:CreateServiceLinkedRole

imagebuilder:TagResource

kms:Encrypt

kms:GenerateDataKey

kms:GenerateDataKeyWithoutPlaintext

CreateContainerRecipe Grants permission to create a new Container Recipe Write

containerRecipe*

aws:RequestTag/${TagKey}

aws:TagKeys

ecr:DescribeImages

ecr:DescribeRepositories

iam:CreateServiceLinkedRole

imagebuilder:GetComponent

imagebuilder:GetImage

imagebuilder:TagResource

kms:Encrypt

kms:GenerateDataKey

kms:GenerateDataKeyWithoutPlaintext

CreateDistributionConfiguration Grants permission to create a new distribution configuration Write

distributionConfiguration*

aws:RequestTag/${TagKey}

aws:TagKeys

iam:CreateServiceLinkedRole

imagebuilder:TagResource

CreateImage Grants permission to create a new image Write

image*

aws:RequestTag/${TagKey}

aws:TagKeys

iam:CreateServiceLinkedRole

iam:PassRole

imagebuilder:GetContainerRecipe

imagebuilder:GetDistributionConfiguration

imagebuilder:GetImageRecipe

imagebuilder:GetInfrastructureConfiguration

imagebuilder:GetWorkflow

imagebuilder:TagResource

CreateImagePipeline Grants permission to create a new image pipeline Write

imagePipeline*

aws:RequestTag/${TagKey}

aws:TagKeys

iam:CreateServiceLinkedRole

iam:PassRole

imagebuilder:GetContainerRecipe

imagebuilder:GetDistributionConfiguration

imagebuilder:GetImageRecipe

imagebuilder:GetInfrastructureConfiguration

imagebuilder:GetWorkflow

imagebuilder:TagResource

CreateImageRecipe Grants permission to create a new Image Recipe Write

imageRecipe*

aws:RequestTag/${TagKey}

aws:TagKeys

ec2:DescribeImages

iam:CreateServiceLinkedRole

imagebuilder:GetComponent

imagebuilder:GetImage

imagebuilder:TagResource

CreateInfrastructureConfiguration Grants permission to create a new infrastructure configuration Write

infrastructureConfiguration*

aws:RequestTag/${TagKey}

aws:TagKeys

imagebuilder:CreatedResourceTagKeys

imagebuilder:CreatedResourceTag/<key>

imagebuilder:Ec2MetadataHttpTokens

imagebuilder:StatusTopicArn

iam:CreateServiceLinkedRole

iam:PassRole

imagebuilder:TagResource

sns:Publish

CreateLifecyclePolicy Grants permission to create a new lifecycle policy Write

lifecyclePolicy*

aws:RequestTag/${TagKey}

aws:TagKeys

imagebuilder:LifecyclePolicyResourceType

iam:PassRole

imagebuilder:TagResource

CreateWorkflow Grants permission to create a new workflow Write

workflow*

aws:RequestTag/${TagKey}

aws:TagKeys

imagebuilder:TagResource

kms:Encrypt

kms:GenerateDataKey

kms:GenerateDataKeyWithoutPlaintext

s3:GetObject

s3:ListBucket

DeleteComponent Grants permission to delete a component Write

component*

DeleteContainerRecipe Grants permission to delete a container recipe Write

containerRecipe*

DeleteDistributionConfiguration Grants permission to delete a distribution configuration Write

distributionConfiguration*

DeleteImage Grants permission to delete an image Write

image*

DeleteImagePipeline Grants permission to delete an image pipeline Write

imagePipeline*

DeleteImageRecipe Grants permission to delete an image recipe Write

imageRecipe*

DeleteInfrastructureConfiguration Grants permission to delete an infrastructure configuration Write

infrastructureConfiguration*

DeleteLifecyclePolicy Grants permission to delete a lifecycle policy Write

lifecyclePolicy*

DeleteWorkflow Grants permission to delete a workflow Write

workflow*

GetComponent Grants permission to view details about a component Read

component*

kms:Decrypt

GetComponentPolicy Grants permission to view the resource policy associated with a component Read

component*

GetContainerRecipe Grants permission to view details about a container recipe Read

containerRecipe*

GetContainerRecipePolicy Grants permission to view the resource policy associated with a container recipe Read

containerRecipe*

GetDistributionConfiguration Grants permission to view details about a distribution configuration Read

distributionConfiguration*

GetImage Grants permission to view details about an image Read

image*

aws:ResourceTag/${TagKey}

GetImagePipeline Grants permission to view details about an image pipeline Read

imagePipeline*

GetImagePolicy Grants permission to view the resource policy associated with an image Read

image*

GetImageRecipe Grants permission to view details about an image recipe Read

imageRecipe*

GetImageRecipePolicy Grants permission to view the resource policy associated with an image recipe Read

imageRecipe*

GetInfrastructureConfiguration Grants permission to view details about an infrastructure configuration Read

infrastructureConfiguration*

GetLifecycleExecution Grants permission to view details about a lifecycle execution Read

lifecycleExecution*

GetLifecyclePolicy Grants permission to view details about a lifecycle policy Read

lifecyclePolicy*

GetWorkflow Grants permission to view details about a workflow Read

workflow*

kms:Decrypt

GetWorkflowExecution Grants permission to view details about a workflow execution Read

workflowExecution*

GetWorkflowStepExecution Grants permission to view details about a workflow step execution Read

workflowStepExecution*

ImportComponent Grants permission to import a new component Write

component*

aws:RequestTag/${TagKey}

aws:TagKeys

iam:CreateServiceLinkedRole

imagebuilder:TagResource

kms:Encrypt

kms:GenerateDataKey

kms:GenerateDataKeyWithoutPlaintext

ImportVmImage Grants permission to import an image Write

image*

aws:RequestTag/${TagKey}

aws:TagKeys

ec2:DescribeImportImageTasks

iam:CreateServiceLinkedRole

ListComponentBuildVersions Grants permission to list the component build versions in your account List

componentVersion*

ListComponents Grants permission to list the component versions owned by or shared with your account List
ListContainerRecipes Grants permission to list the container recipes owned by or shared with your account List
ListDistributionConfigurations Grants permission to list the distribution configurations in your account List
ListImageBuildVersions Grants permission to list the image build versions in your account List

imageVersion*

ListImagePackages Grants permission to return a list of packages installed on the specified image List

image*

aws:ResourceTag/${TagKey}

ListImagePipelineImages Grants permission to return a list of images created by the specified pipeline List

imagePipeline*

ListImagePipelines Grants permission to list the image pipelines in your account List
ListImageRecipes Grants permission to list the image recipes owned by or shared with your account List
ListImageScanFindingAggregations Grants permission to list aggregations on the image scan findings in your account List

image

imagePipeline

ListImageScanFindings Grants permission to list the image scan findings for the images in your account List

image

inspector2:ListFindings

imagePipeline

ListImages Grants permission to list the image versions owned by or shared with your account List
ListInfrastructureConfigurations Grants permission to list the infrastructure configurations in your account List
ListLifecycleExecutionResources Grants permission to list resources for the specified lifecycle execution List

lifecycleExecution*

ListLifecycleExecutions Grants permission to list lifecycle executions for the specified resource List

image

lifecyclePolicy

ListLifecyclePolicies Grants permission to list the lifecycle policies in your account List
ListTagsForResource Grants permission to list tags for an Image Builder resource Read

component

aws:ResourceTag/${TagKey}

containerRecipe

aws:ResourceTag/${TagKey}

distributionConfiguration

aws:ResourceTag/${TagKey}

image

aws:ResourceTag/${TagKey}

imagePipeline

aws:ResourceTag/${TagKey}

imageRecipe

aws:ResourceTag/${TagKey}

infrastructureConfiguration

aws:ResourceTag/${TagKey}

lifecyclePolicy

aws:ResourceTag/${TagKey}

workflow

aws:ResourceTag/${TagKey}

ListWaitingWorkflowSteps Grants permission to list waiting workflow steps for the caller account List
ListWorkflowBuildVersions Grants permission to list the workflow build versions in your account List

workflowVersion*

ListWorkflowExecutions Grants permission to list workflow executions for the specified image List

image*

ListWorkflowStepExecutions Grants permission to list workflow step executions for the specified workflow List

workflowExecution*

ListWorkflows Grants permission to list the workflow versions owned by or shared with your account List
PutComponentPolicy Grants permission to set the resource policy associated with a component Permissions management

component*

PutContainerRecipePolicy Grants permission to set the resource policy associated with a container recipe Permissions management

containerRecipe*

PutImagePolicy Grants permission to set the resource policy associated with an image Permissions management

image*

PutImageRecipePolicy Grants permission to set the resource policy associated with an image recipe Permissions management

imageRecipe*

SendWorkflowStepAction Grants permission to send an action to a workflow step Write

image*

workflowStepExecution*

StartImagePipelineExecution Grants permission to create a new image from a pipeline Write

imagePipeline*

iam:CreateServiceLinkedRole

imagebuilder:GetImagePipeline

StartResourceStateUpdate Grants permission to start a state update for the specified resource Write

image*

TagResource Grants permission to tag an Image Builder resource Tagging

component

aws:TagKeys

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

containerRecipe

aws:TagKeys

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

distributionConfiguration

aws:TagKeys

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

image

aws:TagKeys

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

imagePipeline

aws:TagKeys

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

imageRecipe

aws:TagKeys

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

infrastructureConfiguration

aws:TagKeys

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

lifecyclePolicy

aws:TagKeys

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

workflow

aws:TagKeys

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

UntagResource Grants permission to untag an Image Builder resource Tagging

component

aws:ResourceTag/${TagKey}

aws:TagKeys

containerRecipe

aws:ResourceTag/${TagKey}

aws:TagKeys

distributionConfiguration

aws:ResourceTag/${TagKey}

aws:TagKeys

image

aws:ResourceTag/${TagKey}

aws:TagKeys

imagePipeline

aws:ResourceTag/${TagKey}

aws:TagKeys

imageRecipe

aws:ResourceTag/${TagKey}

aws:TagKeys

infrastructureConfiguration

aws:ResourceTag/${TagKey}

aws:TagKeys

lifecyclePolicy

aws:ResourceTag/${TagKey}

aws:TagKeys

workflow

aws:ResourceTag/${TagKey}

aws:TagKeys

UpdateDistributionConfiguration Grants permission to update an existing distribution configuration Write

distributionConfiguration*

UpdateImagePipeline Grants permission to update an existing image pipeline Write

imagePipeline*

iam:CreateServiceLinkedRole

iam:PassRole

imagebuilder:GetContainerRecipe

imagebuilder:GetDistributionConfiguration

imagebuilder:GetImageRecipe

imagebuilder:GetInfrastructureConfiguration

imagebuilder:GetWorkflow

UpdateInfrastructureConfiguration Grants permission to update an existing infrastructure configuration Write

infrastructureConfiguration*

aws:ResourceTag/${TagKey}

imagebuilder:CreatedResourceTagKeys

imagebuilder:CreatedResourceTag/<key>

imagebuilder:Ec2MetadataHttpTokens

imagebuilder:StatusTopicArn

iam:PassRole

sns:Publish

UpdateLifecyclePolicy Grants permission to update an existing lifecycle policy Write

lifecyclePolicy*

imagebuilder:LifecyclePolicyResourceType

iam:PassRole

Resource types defined by Amazon EC2 Image Builder

The following resource types are defined by this service and can be used in the Resource element of IAM permission policy statements. Each action in the Actions table identifies the resource types that can be specified with that action. A resource type can also define which condition keys you can include in a policy. These keys are displayed in the last column of the Resource types table. For details about the columns in the following table, see Resource types table.

Resource types ARN Condition keys
component arn:${Partition}:imagebuilder:${Region}:${Account}:component/${ComponentName}/${ComponentVersion}/${ComponentBuildVersion}

aws:ResourceTag/${TagKey}

componentVersion arn:${Partition}:imagebuilder:${Region}:${Account}:component/${ComponentName}/${ComponentVersion}

aws:ResourceTag/${TagKey}

distributionConfiguration arn:${Partition}:imagebuilder:${Region}:${Account}:distribution-configuration/${DistributionConfigurationName}

aws:ResourceTag/${TagKey}

image arn:${Partition}:imagebuilder:${Region}:${Account}:image/${ImageName}/${ImageVersion}/${ImageBuildVersion}

aws:ResourceTag/${TagKey}

imageVersion arn:${Partition}:imagebuilder:${Region}:${Account}:image/${ImageName}/${ImageVersion}

aws:ResourceTag/${TagKey}

imageRecipe arn:${Partition}:imagebuilder:${Region}:${Account}:image-recipe/${ImageRecipeName}/${ImageRecipeVersion}

aws:ResourceTag/${TagKey}

containerRecipe arn:${Partition}:imagebuilder:${Region}:${Account}:container-recipe/${ContainerRecipeName}/${ContainerRecipeVersion}

aws:ResourceTag/${TagKey}

imagePipeline arn:${Partition}:imagebuilder:${Region}:${Account}:image-pipeline/${ImagePipelineName}

aws:ResourceTag/${TagKey}

infrastructureConfiguration arn:${Partition}:imagebuilder:${Region}:${Account}:infrastructure-configuration/${ResourceId}

aws:ResourceTag/${TagKey}

kmsKey arn:${Partition}:kms:${Region}:${Account}:key/${KeyId}
lifecycleExecution arn:${Partition}:imagebuilder:${Region}:${Account}:lifecycle-execution/${LifecycleExecutionId}
lifecyclePolicy arn:${Partition}:imagebuilder:${Region}:${Account}:lifecycle-policy/${LifecyclePolicyName}

aws:ResourceTag/${TagKey}

workflow arn:${Partition}:imagebuilder:${Region}:${Account}:workflow/${WorkflowType}/${WorkflowName}/${WorkflowVersion}/${WorkflowBuildVersion}

aws:ResourceTag/${TagKey}

workflowVersion arn:${Partition}:imagebuilder:${Region}:${Account}:workflow/${WorkflowType}/${WorkflowName}/${WorkflowVersion}

aws:ResourceTag/${TagKey}

workflowExecution arn:${Partition}:imagebuilder:${Region}:${Account}:workflow-execution/${WorkflowExecutionId}
workflowStepExecution arn:${Partition}:imagebuilder:${Region}:${Account}:workflow-step-execution/${WorkflowStepExecutionId}

Condition keys for Amazon EC2 Image Builder

Amazon EC2 Image Builder defines the following condition keys that can be used in the Condition element of an IAM policy. You can use these keys to further refine the conditions under which the policy statement applies. For details about the columns in the following table, see Condition keys table.

To view the global condition keys that are available to all services, see Available global condition keys.

Condition keys Description Type
aws:RequestTag/${TagKey} Filters access by the presence of tag key-value pairs in the request String
aws:ResourceTag/${TagKey} Filters access by tag key-value pairs attached to the resource String
aws:TagKeys Filters access by the presence of tag keys in the request ArrayOfString
imagebuilder:CreatedResourceTag/<key> Filters access by the tag key-value pairs attached to the resource created by Image Builder String
imagebuilder:CreatedResourceTagKeys Filters access by the presence of tag keys in the request ArrayOfString
imagebuilder:Ec2MetadataHttpTokens Filters access by the EC2 Instance Metadata HTTP Token Requirement specified in the request String
imagebuilder:LifecyclePolicyResourceType Filters access by the Lifecycle Policy Resource Type specified in the request String
imagebuilder:StatusTopicArn Filters access by the SNS Topic Arn in the request to which terminal state notifications will be published ARN