repository
Gets an individual repository
resource
Overview
Name | repository |
Type | Resource |
Description | repository |
Id | awscc.ecr.repository |
Fields
Name | Datatype | Description |
---|---|---|
empty_on_delete | boolean | |
lifecycle_policy | object | |
repository_name | string | The 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_text | object | The 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. |
tags | array | An array of key-value pairs to apply to this resource. |
arn | string | |
repository_uri | string | |
image_tag_mutability | string | The image tag mutability setting for the repository. |
image_scanning_configuration | object | |
encryption_configuration | object | |
region | string | AWS 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