Skip to main content

repository

Gets an individual repository resource

Overview

Namerepository
TypeResource
Descriptionrepository
Idawscc.ecr.repository

Fields

NameDatatypeDescription
empty_on_deleteboolean
lifecycle_policyobject
repository_namestringThe name to use for the repository. The repository name may be specified on its own (such as nginx-web-app) or it can be prepended with a namespace to group the repository into a category (such as project-a/nginx-web-app). If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the repository name. For more information, see https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-name.html.
repository_policy_textobjectThe JSON repository policy text to apply to the repository. For more information, see https://docs.aws.amazon.com/AmazonECR/latest/userguide/RepositoryPolicyExamples.html in the Amazon Elastic Container Registry User Guide.
tagsarrayAn array of key-value pairs to apply to this resource.
arnstring
repository_uristring
image_tag_mutabilitystringThe image tag mutability setting for the repository.
image_scanning_configurationobject
encryption_configurationobject
regionstringAWS region.

Methods

Currently only SELECT is supported for this resource resource.

Example

SELECT
region,
empty_on_delete,
lifecycle_policy,
repository_name,
repository_policy_text,
tags,
arn,
repository_uri,
image_tag_mutability,
image_scanning_configuration,
encryption_configuration
FROM awscc.ecr.repository
WHERE data__Identifier = '<RepositoryName>';

Permissions

To operate on the repository resource, the following permissions are required:

Read

ecr:DescribeRepositories,
ecr:GetLifecyclePolicy,
ecr:GetRepositoryPolicy,
ecr:ListTagsForResource

Update

ecr:DescribeRepositories,
ecr:PutLifecyclePolicy,
ecr:SetRepositoryPolicy,
ecr:ListTagsForResource,
ecr:TagResource,
ecr:UntagResource,
ecr:DeleteLifecyclePolicy,
ecr:DeleteRepositoryPolicy,
ecr:PutImageScanningConfiguration,
ecr:PutImageTagMutability,
kms:DescribeKey,
kms:CreateGrant,
kms:RetireGrant

Delete

ecr:DeleteRepository,
kms:RetireGrant