generated from clowdhaus/terraform-aws-module-template
-
-
Notifications
You must be signed in to change notification settings - Fork 111
/
outputs.tf
23 lines (19 loc) · 940 Bytes
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
################################################################################
# Repository (Public and Private)
################################################################################
output "repository_name" {
description = "Name of the repository"
value = try(aws_ecr_repository.this[0].name, aws_ecrpublic_repository.this[0].id, null)
}
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)
}