-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathoutputs.tf
42 lines (35 loc) · 1.28 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
37
38
39
40
41
42
output "name" {
description = "The name of the repository."
value = var.name
}
output "arn" {
description = "The ARN of the repository."
value = aws_ecr_repository.this.arn
}
output "registry_id" {
description = "The registry ID where the repository was created."
value = aws_ecr_repository.this.registry_id
}
output "url" {
description = "The URL of the repository (in the form aws_account_id.dkr.ecr.region.amazonaws.com/repositoryName)."
value = aws_ecr_repository.this.repository_url
}
output "image_tag_immutable_enabled" {
description = "Whether to enable tag immutability to prevent image tags from being overwritten."
value = aws_ecr_repository.this.image_tag_mutability == "IMMUTABLE"
}
output "image_scan_on_push_enabled" {
description = "Whether to scan image on push."
value = aws_ecr_repository.this.image_scanning_configuration[0].scan_on_push
}
output "lifecycle_rules" {
description = "The lifecycle rules for the repository."
value = var.lifecycle_rules
}
output "encryption" {
description = "The encryption configuration of the repository."
value = {
type = aws_ecr_repository.this.encryption_configuration[0].encryption_type
kms_key = aws_ecr_repository.this.encryption_configuration[0].kms_key
}
}