Actions, resources, and condition keys for Amazon Elastic Container Registry Public
Amazon Elastic Container Registry Public (service prefix: ecr-public) provides the following
service-specific operations, resources, actions, and condition keys for use in IAM permission
policies.
References:
-
Learn how to configure this service.
-
View a list of the API operations available for this service.
-
Learn how to secure this service and its resources by using IAM permission policies.
-
View the programmatic service authorization reference
for this service.
Topics
API operations defined by Amazon Elastic Container Registry Public
The following table maps API operations to the IAM actions they authorize. Only condition keys that have static values for the given API and action are listed; for the full set of condition keys supported by each action, see the Actions table.
| Operation | IAM action | Condition key | Possible value(s) | Access level |
|---|---|---|---|---|
|
BatchCheckLayerAvailability |
Read |
|||
|
BatchDeleteImage |
Write |
|||
|
CompleteLayerUpload |
Write |
|||
|
CreateRepository |
Write |
|||
Tagging, Write |
||||
|
DeleteRepository |
Write |
|||
|
DeleteRepositoryPolicy |
Write |
|||
|
DescribeImageTags |
List |
|||
|
DescribeImages |
Read |
|||
|
DescribeRegistries |
List |
|||
|
DescribeRepositories |
List |
|||
|
GetAuthorizationToken |
Read |
|||
Read |
||||
|
GetRegistryCatalogData |
Read |
|||
|
GetRepositoryCatalogData |
Read |
|||
|
GetRepositoryPolicy |
Read |
|||
|
InitiateLayerUpload |
Write |
|||
|
ListTagsForResource |
Read |
|||
|
PutImage |
Write |
|||
|
PutRegistryCatalogData |
Write |
|||
|
PutRepositoryCatalogData |
Write |
|||
|
SetRepositoryPolicy |
Permissions management, Write |
|||
|
TagResource |
Tagging, Write |
|||
|
UntagResource |
Tagging, Write |
|||
|
UploadLayerPart |
Write |
Actions defined by Amazon Elastic Container Registry Public
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 AWS. 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.
| Actions | Description | Resource types (*required) | Condition keys | Access level |
|---|---|---|---|---|
Grants permission to check the availability of multiple image layers in a specified registry and repository |
Read |
|||
Grants permission to delete a list of specified images within a specified repository |
Write |
|||
Grants permission to inform Amazon ECR that the image layer upload for a specified registry, repository name, and upload ID, has completed |
Write |
|||
Grants permission to create an image repository |
Write |
|||
Grants permission to delete an existing image repository |
Write |
|||
Grants permission to delete the repository policy from a specified repository |
Write |
|||
Grants permission to describe all the image tags for a given repository |
List |
|||
Grants permission to get metadata about the images in a repository, including image size, image tags, and creation date |
Read |
|||
Grants permission to retrieve the catalog data associated with a registry |
List |
|||
Grants permission to describe image repositories in a registry |
List |
|||
Grants permission to retrieve a token that is valid for a specified registry for 12 hours |
Read |
|||
Grants permission to retrieve the catalog data associated with a registry |
Read |
|||
Grants permission to retrieve the catalog data associated with a repository |
Read |
|||
Grants permission to retrieve the repository policy for a specified repository |
Read |
|||
Grants permission to notify Amazon ECR that you intend to upload an image layer |
Write |
|||
Grants permission to list the tags for an Amazon ECR resource |
Read |
|||
Grants permission to create or update the image manifest associated with an image |
Write |
|||
Grants permission to create and update the catalog data associated with a registry |
Write |
|||
Grants permission to update the catalog data associated with a repository |
Write |
|||
Grants permission to apply a repository policy on a specified repository to control access permissions |
Permissions management, Write |
|||
Grants permission to tag an Amazon ECR resource |
Tagging, Write |
|||
Grants permission to untag an Amazon ECR resource |
Tagging, Write |
|||
Grants permission to upload an image layer part to Amazon ECR Public |
Write |
Resource types defined by Amazon Elastic Container Registry Public
The following resource types are defined by this service and can be used in the
Resource element of IAM permission policy statements.
| Resource types | ARN | Condition keys |
|---|---|---|
arn:${Partition}:ecr-public::${Account}:registry/${RegistryId} |
||
arn:${Partition}:ecr-public::${Account}:repository/${RepositoryName} |
Condition keys for Amazon Elastic Container Registry Public
Amazon Elastic Container Registry Public defines the following condition keys that can be used in the
Condition element of an IAM policy.
| Condition keys | Description | Type |
|---|---|---|
Filters create requests based on the allowed set of values for each of the tags |
String |
|
Filters actions based on tag-value associated with the resource |
String |
|
Filters create requests based on the presence of mandatory tags in the request |
ArrayOfString |
|
Filters actions based on tag-value associated with the resource |
String |