-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
124 lines (107 loc) · 3.38 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
variable "location" {
description = "Google Filestore instance location (zone, region)"
type = string
}
variable "name" {
description = "Google Filestore instance name"
type = string
}
variable "description" {
description = "Google Filestore instance description "
type = string
default = "Managed by Terraform"
}
variable "tier" {
description = "Google Filestore instance tier (STANDARD, PREMIUM, BASIC_HDD, BASIC_SSD, HIGH_SCALE_SSD, ZONAL, REGIONAL, ENTERPRISE)."
type = string
validation {
condition = contains(["STANDARD", "PREMIUM", "BASIC_HDD", "BASIC_SSD", "HIGH_SCALE_SSD", "ZONAL", "REGIONAL", "ENTERPRISE"], var.tier)
error_message = "Invalid tier. Must be one of: STANDARD, PREMIUM, BASIC_HDD, BASIC_SSD, HIGH_SCALE_SSD, ZONAL, REGIONAL, ENTERPRISE."
}
}
variable "file_shares" {
description = "Google Filestore instance file shares."
type = object({
name = string,
capacity_gb = string,
source_backup = optional(string),
nfs_export_options = optional(list(object({
ip_ranges = list(string)
access_mode = string
squash_mode = string
anon_uid = optional(number)
anon_gid = optional(number)
})), [])
})
}
variable "networks" {
description = "Google Filestore instance networks."
type = object({
network = string,
modes = list(string),
connect_mode = optional(string)
reserved_ip_range = optional(string)
})
}
variable "protocol" {
description = "Google Filestore instance protocol (NFS_V3, NFS_V4_1)"
type = string
default = null
}
variable "labels" {
description = "Google Filestore instance labels."
type = map(string)
default = {}
}
variable "kms_key_name" {
description = "Google KMS key name used for Filestore instance data encryption."
type = string
default = null
}
variable "deletion_protection_enabled" {
description = "Google Filestore instance data deletion protection switch."
type = string
default = false
}
variable "deletion_protection_reason" {
description = "Google Filestore instance data deletion protection reason."
type = string
default = null
}
variable "performance_config" {
description = "Google Filestore instance performance configuration."
type = object({
iops_per_tb = optional(object({
max_iops_per_tb = number
}))
fixed_iops = optional(object({
max_iops = number
}))
})
default = null
}
variable "enable_auto_backup" {
description = "Google Filestore instance auto backup switch."
type = bool
default = false
}
variable "auto_backup_schedule" {
description = "Google Cloud Scheduler job schedule (cron) for Google Filestore instance auto backup."
type = string
default = "0 0 * * *"
}
variable "auto_backup_time_zone" {
description = "Google Cloud Scheduler job time zone for Google Filestore instance auto backup."
type = string
default = "Etc/UTC"
}
variable "auto_backup_function_location" {
description = "Google Cloud Run Function location (region) for Google Filestore instance auto backup."
type = string
default = null
}
variable "auto_backup_function_storage_bucket_name" {
description = "Google Cloud Storage bucket name for Filestore automatic backup retention days."
type = string
default = null
}