-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
78 lines (66 loc) · 2.09 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
variable "repository_type" {
description = "The type of repository to create(public or private)"
type = string
default = "private"
}
variable "image_names" {
type = list(string)
default = []
description = "List of Docker local image names, used as repository names for AWS ECR "
}
variable "protected_tags" {
type = list(string)
default = ["latest"]
description = "Name of image tags prefixes that should not be destroyed."
}
variable "only_pull_accounts" {
default = []
type = list(string)
description = "AWS accounts which pull only."
}
variable "push_and_pull_accounts" {
default = []
type = list(string)
description = "AWS accounts which push and pull."
}
variable "max_untagged_image_count" {
default = 1
type = number
description = "The maximum number of untagged images that you want to retain in repository."
}
variable "max_tagged_image_count" {
default = 30
type = number
description = "The maximum number of tagged images that you want to retain in repository."
}
variable "scan_on_push" {
default = false
type = bool
description = "Whether images should automatically be scanned on push or not."
}
variable "image_tag_mutability" {
default = "MUTABLE"
type = string
description = "Whether images are allowed to overwrite existing tags."
}
variable "encryption_type" {
description = "The encryption type to use for the repository. Valid values are `AES256` or `KMS`"
type = string
default = "AES256"
}
# KMS key
variable "kms_key" {
description = "The ARN of the KMS key to use when encryption_type is `KMS`. If not specified when encryption_type is `KMS`, uses a new KMS key. Otherwise, uses the default AWS managed key for ECR."
type = string
default = null
}
variable "tags" {
description = "The tags for the resources"
type = map(any)
default = {}
}
variable "public_repository_catalog_data" {
description = "Catalog data configuration for the public repository"
type = any
default = {}
}