forked from terraform-aws-modules/terraform-aws-ecr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
18 lines (15 loc) · 773 Bytes
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
################################################################################
# Repository (Public and Private)
################################################################################
output "repository_arn" {
description = "Full ARN of the repository"
value = try(aws_ecr_repository.this[0].arn, aws_ecrpublic_repository.this[0].arn, null)
}
output "repository_registry_id" {
description = "The registry ID where the repository was created"
value = try(aws_ecr_repository.this[0].registry_id, aws_ecrpublic_repository.this[0].registry_id, null)
}
output "repository_url" {
description = "The URL of the repository"
value = try(aws_ecr_repository.this[0].repository_url, aws_ecrpublic_repository.this[0].repository_uri, null)
}