-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_variables.tf
109 lines (90 loc) · 1.74 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
variable "create" {
type = bool
default = true
}
variable "bucket_name" {
type = string
}
variable "bucket_type" {
type = string
default = "private"
validation {
condition = var.bucket_type == "public" || var.bucket_type == "private"
error_message = "Valid values are 'public' or 'private'"
}
}
variable "intelligent_tiering" {
#type = list(any)
default = []
}
# lifecycle
variable "infrequent_access_enabled" {
type = bool
default = false
}
variable "infrequent_access_days" {
type = number
default = 7
}
variable "intelligent_tiering_enabled" {
type = bool
default = false
}
variable "intelligent_tiering_days" {
type = number
default = 7
}
variable "glacier_enabled" {
type = bool
default = false
}
variable "glacier_days" {
type = number
default = 30
}
variable "expiration_objects_enabled" {
type = bool
default = false
}
variable "expiration_objects_days" {
type = number
default = 90
}
variable "create_iam_user" {
type = bool
default = false
}
variable "create_iam_user_write_acl" {
type = bool
default = false
description = "If iam user can use WRITE_ACP on bucket"
}
variable "create_iam_eks_role" {
type = any
default = {}
}
variable "extra_custom_policy" {
type = any
default = {}
}
variable "extra_policy" {
type = list(string)
default = []
}
variable "cors_rules" {
#type = list(any)
default = [
{
allowed_headers = ["*"]
allowed_methods = ["PUT", "HEAD", "POST", "GET"]
allowed_origins = ["*.weni.ai"]
expose_headers = ["ETag", "Access-Control-Allow-Origin"]
max_age_seconds = 3000
}
]
nullable = false
}
variable "tags" {
type = map(string)
default = {}
}