-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathvariables.tf
142 lines (119 loc) · 3.58 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
140
141
142
#Module : LABEL
#Description : Terraform label module variables
variable "name" {
type = string
default = ""
description = "Name (e.g. `app` or `cluster`)."
}
variable "environment" {
type = string
default = "test"
description = "Environment (e.g. `prod`, `dev`, `staging`)."
}
variable "label_order" {
type = list(any)
default = ["name", "environment"]
description = "Label order, e.g. `name`,`application`."
}
variable "managedby" {
type = string
default = "anmol@clouddrove.com"
description = "ManagedBy, eg 'CloudDrove' "
}
variable "attributes" {
type = list(any)
default = []
description = "Additional attributes (e.g. `1`)."
}
variable "delimiter" {
type = string
default = "-"
description = "Delimiter to be used between `organization`, `environment`, `name` and `attributes`."
}
variable "tags" {
type = map(any)
default = {}
description = "Additional tags (e.g. map(`BusinessUnit`,`XYZ`)."
}
variable "enable" {
type = bool
default = true
description = "Set to false to prevent the module from creating any resources."
}
variable "enable_private_ecr" {
type = bool
default = false
description = "Set to false to prevent the module from creating any resources."
}
variable "max_image_count" {
type = number
default = 10
description = "How many Docker Image versions AWS ECR will store."
}
variable "max_untagged_image_count" {
type = number
default = 1
description = "How many Untagged Docker Image versions AWS ECR will store."
}
variable "principals_readonly_access" {
type = list(any)
default = []
description = "Principal ARN to provide with readonly access to the ECR."
}
variable "use_fullname" {
type = string
default = ""
description = "Set 'true' to use `namespace-stage-name` for ecr repository name, else `name`."
}
variable "principals_full_access" {
type = list(any)
description = "Principal ARN to provide with full access to the ECR."
default = []
}
variable "scan_on_push" {
type = bool
description = "Indicates whether images are scanned after being pushed to the repository (true) or not scanned (false)."
default = true
}
variable "repository" {
type = string
default = "https://github.com/clouddrove/terraform-aws-ecr"
description = "Terraform current module repo"
}
variable "image_tag_mutability" {
type = string
default = "IMMUTABLE"
description = "The tag mutability setting for the repository."
}
variable "repository_force_delete" {
type = bool
default = false
description = "If `true`, will delete the repository even if it contains images. Defaults to `false`"
}
variable "encryption_type" {
type = string
default = "KMS"
description = "The encryption type for the repository. Must be one of: `KMS` or `AES256`. Defaults to `AES256`"
}
variable "kms_key" {
type = string
default = null
description = "The ARN of the KMS key to use when encryption_type is `KMS`. If not specified, uses the default AWS managed key for ECR"
}
# Timeouts
variable "timeouts" {
type = map(any)
default = {}
description = "Timeouts map."
}
# Public Repository
variable "enable_public_ecr" {
type = bool
default = false
description = "Set to false to prevent the module from creating any resources."
}
variable "public_repository_catalog_data" {
description = "Catalog data configuration for the repository"
type = any
default = {}
}