-
-
Notifications
You must be signed in to change notification settings - Fork 132
/
outputs.tf
35 lines (30 loc) · 1.08 KB
/
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
24
25
26
27
28
29
30
31
32
33
34
35
output "registry_id" {
value = module.this.enabled ? aws_ecr_repository.name[local.image_names[0]].registry_id : ""
description = "Registry ID"
}
output "repository_name" {
value = module.this.enabled ? aws_ecr_repository.name[local.image_names[0]].name : ""
description = "Name of first repository created"
}
output "repository_url" {
value = module.this.enabled ? aws_ecr_repository.name[local.image_names[0]].repository_url : ""
description = "URL of first repository created"
}
output "repository_arn" {
value = module.this.enabled ? aws_ecr_repository.name[local.image_names[0]].arn : ""
description = "ARN of first repository created"
}
output "repository_url_map" {
value = zipmap(
values(aws_ecr_repository.name)[*].name,
values(aws_ecr_repository.name)[*].repository_url
)
description = "Map of repository names to repository URLs"
}
output "repository_arn_map" {
value = zipmap(
values(aws_ecr_repository.name)[*].name,
values(aws_ecr_repository.name)[*].arn
)
description = "Map of repository names to repository ARNs"
}