-
-
Notifications
You must be signed in to change notification settings - Fork 134
/
variables.tf
139 lines (119 loc) · 3.98 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
variable "use_fullname" {
type = bool
default = true
description = "Set 'true' to use `namespace-stage-name` for ecr repository name, else `name`"
}
variable "principals_full_access" {
type = list(string)
description = "Principal ARNs to provide with full access to the ECR"
default = []
}
variable "principals_push_access" {
type = list(string)
description = "Principal ARNs to provide with push access to the ECR"
default = []
}
variable "principals_readonly_access" {
type = list(string)
description = "Principal ARNs to provide with readonly access to the ECR"
default = []
}
variable "principals_pull_though_access" {
type = list(string)
description = "Principal ARNs to provide with pull though access to the ECR"
default = []
}
variable "principals_lambda" {
type = list(string)
description = "Principal account IDs of Lambdas allowed to consume ECR"
default = []
}
variable "scan_images_on_push" {
type = bool
description = "Indicates whether images are scanned after being pushed to the repository (true) or not (false)"
default = true
}
variable "max_image_count" {
type = number
description = "How many Docker Image versions AWS ECR will store"
default = 500
}
variable "time_based_rotation" {
type = bool
description = "Set to true to filter image based on the `sinceImagePushed` count type."
default = false
}
variable "image_names" {
type = list(string)
default = []
description = "List of Docker local image names, used as repository names for AWS ECR "
}
variable "image_tag_mutability" {
type = string
default = "IMMUTABLE"
description = "The tag mutability setting for the repository. Must be one of: `MUTABLE` or `IMMUTABLE`"
}
variable "enable_lifecycle_policy" {
type = bool
description = "Set to false to prevent the module from adding any lifecycle policies to any repositories"
default = true
}
variable "protected_tags" {
type = set(string)
description = "List of image tags prefixes and wildcards that should not be destroyed. Useful if you tag images with prefixes like `dev`, `staging`, `prod` or wildcards like `*dev`, `*prod`,`*.*.*`"
default = []
}
variable "protected_tags_keep_count" {
type = number
description = "Number of Image versions to keep for protected tags"
default = 999999
}
variable "encryption_configuration" {
type = object({
encryption_type = string
kms_key = any
})
description = "ECR encryption configuration"
default = null
}
variable "force_delete" {
type = bool
description = "Whether to delete the repository even if it contains images"
default = false
}
variable "replication_configurations" {
description = "Replication configuration for a registry. See [Replication Configuration](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecr_replication_configuration#replication-configuration)."
type = list(object({
rules = list(object({ # Maximum 10
destinations = list(object({ # Maximum 25
region = string
registry_id = string
}))
repository_filters = list(object({
filter = string
filter_type = string
}))
}))
}))
default = []
}
variable "organizations_readonly_access" {
type = list(string)
description = "Organization IDs to provide with readonly access to the ECR."
default = []
}
variable "organizations_full_access" {
type = list(string)
description = "Organization IDs to provide with full access to the ECR."
default = []
}
variable "organizations_push_access" {
type = list(string)
description = "Organization IDs to provide with push access to the ECR"
default = []
}
variable "prefixes_pull_through_repositories" {
type = list(string)
description = "Organization IDs to provide with push access to the ECR"
default = []
}