Data Source: awsEcrRepository
The ECR Repository data source allows the ARN, Repository URI and Registry ID to be retrieved for an ECR repository.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsEcrRepository.DataAwsEcrRepository(this, "service", {
name: "ecr-repository",
});
Argument Reference
The following arguments are supported:
name
- (Required) Name of the ECR Repository.registryId
- (Optional) Registry ID where the repository was created.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
arn
- Full ARN of the repository.encryptionConfiguration
- Encryption configuration for the repository. See Encryption Configuration below.imageScanningConfiguration
- Configuration block that defines image scanning configuration for the repository. See Image Scanning Configuration below.imageTagMutability
- The tag mutability setting for the repository.mostRecentImageTags
- List of image tags associated with the most recently pushed image in the repository.repositoryUrl
- URL of the repository (in the formawsAccountIdDkrEcrRegionAmazonawsCom/repositoryName
).tags
- Map of tags assigned to the resource.
Encryption Configuration
encryptionType
- Encryption type to use for the repository, eitheraes256
orkms
.kmsKey
- IfencryptionType
iskms
, the ARN of the KMS key used.
Image Scanning Configuration
scanOnPush
- Whether images are scanned after being pushed to the repository.