-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathoutputs.tf
36 lines (30 loc) · 1.02 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
36
# ECR repository details
output "repository_arn" {
description = "ARN of the ECR repository"
value = local.repository_id
}
output "repository_url" {
description = "URL of the ECR repository"
value = local.repository_url
}
output "repository_name" {
description = "Name of the ECR repository"
value = local.repository_name
}
output "registry_id" {
description = "ID of the ECR registry"
value = local.registry_id
}
output "kms_key_arn" {
value = local.should_create_kms_key ? aws_kms_key.kms_key[0].arn : var.kms_key
description = "The ARN of the KMS key used for repository encryption."
}
# Logging outputs
output "cloudwatch_log_group_arn" {
description = "The ARN of the CloudWatch Log Group used for ECR logs (if logging is enabled)"
value = try(aws_cloudwatch_log_group.ecr_logs[0].arn, null)
}
output "logging_role_arn" {
description = "The ARN of the IAM role used for ECR logging (if logging is enabled)"
value = try(aws_iam_role.ecr_logging[0].arn, null)
}