generated from geekcell/terraform-aws-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
76 lines (68 loc) · 1.82 KB
/
variables.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
## NAMING
variable "name" {
description = "Name of the ECR repository."
type = string
}
variable "tags" {
description = "Tags to add to the ECR repository."
default = {}
type = map(any)
}
## REPOSITORY
variable "encryption_type" {
description = "The encryption type to use for the repository."
default = "AES256"
type = string
}
variable "image_tag_mutability" {
description = "The tag mutability setting for the repository."
default = "MUTABLE"
type = string
}
variable "force_delete" {
description = "Delete the repository even if it contains images."
default = false
type = bool
}
variable "kms_key" {
description = "The ARN of the KMS key to use for encryption."
default = null
type = string
}
variable "lifecycle_rules" {
description = "Lifecycle policy rules for expiring images."
default = [
{
description = "Keep the last 30 tagged images"
tag_status = "tagged"
tag_prefix_list = ["sha"]
count_type = "imageCountMoreThan"
count_number = 30
},
{
description = "Expire untagged images older than 10 days"
tag_status = "untagged"
count_type = "sinceImagePushed"
count_unit = "days"
count_number = 10
}
]
type = list(object({
description = optional(string)
tag_status = optional(string)
tag_prefix_list = optional(list(string))
count_type = string
count_unit = optional(string)
count_number = number
}))
}
variable "policy" {
description = "Repository policy document in JSON format."
default = null
type = string
}
variable "scan_on_push" {
description = "Indicates whether images are scanned after being pushed to the repository."
default = true
type = bool
}