forked from lgallard/terraform-aws-ecr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
72 lines (62 loc) · 1.93 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
# General vars
variable "name" {
description = "Name of the repository."
type = string
}
variable "image_tag_mutability" {
description = "The tag mutability setting for the repository. Must be one of: `MUTABLE` or `IMMUTABLE`."
type = string
default = "MUTABLE"
}
# Image scanning configuration
variable "image_scanning_configuration" {
description = "Configuration block that defines image scanning configuration for the repository. By default, image scanning must be manually triggered. See the ECR User Guide for more information about image scanning."
type = map
default = {}
}
variable "scan_on_push" {
description = "Indicates whether images are scanned after being pushed to the repository (true) or not scanned (false)."
type = bool
default = true
}
# Timeouts
variable "timeouts" {
description = "Timeouts map."
type = map
default = {}
}
variable "timeouts_delete" {
description = "How long to wait for a repository to be deleted."
type = string
default = null
}
# Policy
variable "policy" {
description = "Manages the ECR repository policy"
type = string
default = null
}
# Lifecycle policy
variable "lifecycle_policy" {
description = "Manages the ECR repository lifecycle policy"
type = string
default = null
}
# Tags
variable "tags" {
description = "A mapping of tags to assign to the resource."
type = map(string)
default = {}
}
# Encryption type
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
}