---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "awscc_ecr_repository Data Source - terraform-provider-awscc"
subcategory: ""
description: |-
Data Source schema for AWS::ECR::Repository
---
# awscc_ecr_repository (Data Source)
Data Source schema for AWS::ECR::Repository
## Schema
### Required
- `id` (String) Uniquely identifies the resource.
### Read-Only
- `arn` (String)
- `encryption_configuration` (Attributes) The encryption configuration for the repository. This determines how the contents of your repository are encrypted at rest.
By default, when no encryption configuration is set or the AES256 encryption type is used, Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts your data at rest using an AES-256 encryption algorithm. This does not require any action on your part.
For more information, see https://docs.aws.amazon.com/AmazonECR/latest/userguide/encryption-at-rest.html (see [below for nested schema](#nestedatt--encryption_configuration))
- `image_scanning_configuration` (Attributes) The image scanning configuration for the repository. This setting determines whether images are scanned for known vulnerabilities after being pushed to the repository. (see [below for nested schema](#nestedatt--image_scanning_configuration))
- `image_tag_mutability` (String) The image tag mutability setting for the repository.
- `lifecycle_policy` (Attributes) The LifecyclePolicy property type specifies a lifecycle policy. For information about lifecycle policy syntax, see https://docs.aws.amazon.com/AmazonECR/latest/userguide/LifecyclePolicies.html (see [below for nested schema](#nestedatt--lifecycle_policy))
- `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` (String) 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.
- `repository_uri` (String)
- `tags` (Attributes Set) An array of key-value pairs to apply to this resource. (see [below for nested schema](#nestedatt--tags))
### Nested Schema for `encryption_configuration`
Read-Only:
- `encryption_type` (String) The encryption type to use.
- `kms_key` (String) If you use the KMS encryption type, specify the CMK to use for encryption. The alias, key ID, or full ARN of the CMK can be specified. The key must exist in the same Region as the repository. If no key is specified, the default AWS managed CMK for Amazon ECR will be used.
### Nested Schema for `image_scanning_configuration`
Read-Only:
- `scan_on_push` (Boolean) The setting that determines whether images are scanned after being pushed to a repository.
### Nested Schema for `lifecycle_policy`
Read-Only:
- `lifecycle_policy_text` (String) The JSON repository policy text to apply to the repository.
- `registry_id` (String) The AWS account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.
### Nested Schema for `tags`
Read-Only:
- `key` (String) The key name of the tag. You can specify a value that is 1 to 127 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
- `value` (String) The value for the tag. You can specify a value that is 1 to 255 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.