-
Notifications
You must be signed in to change notification settings - Fork 5
/
variables.tf
103 lines (85 loc) · 2.27 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
variable "common_tags" {
description = "Set the common tags that will be populated to all AWS resources"
type = map(string)
}
variable "s3_bucket_acl" {
description = "Set the bucket access control list"
default = "private"
}
variable "s3_bucket_force_destroy" {
description = "Allow the bucket to be destroyed after creation"
default = false
}
variable "s3_bucket_name" {
description = "Set the name for the S3 bucket"
}
variable "s3_bucket_policy" {
description = "You can provide a custom bucket policy with this variable"
default = false
}
variable "bucket_versioning" {
description = "Set if the bucket objects should be versioned or not"
default = false
}
variable "s3_sse_algorithm" {
description = "Set the server side encryption on the bucket, choose between AES or KMS"
default = "AES256"
}
variable "mfa_delete_enabled" {
description = "Require MFA to delete objects"
default = false
}
variable "block_public_acls" {
default = false
}
variable "block_public_policy" {
default = false
}
variable "ignore_public_acls" {
default = false
}
variable "restrict_public_buckets" {
default = false
}
variable "cors_rule" {
description = "cors rule"
default = {
allowed_headers = ["*"]
allowed_methods = ["PUT", "POST"]
allowed_origins = [""]
expose_headers = ["ETag"]
max_age_seconds = 3000
}
}
variable "versioning" {
description = "Map containing versioning configuration."
default = {
status = "Disabled",
mfa_delete = "Disabled"
}
}
variable "intelligent_tiering_configuration_name" {
description = "The name to give to the tiering configuration"
type = string
default = "bucket_tiering"
}
variable "intelligent_tiering_configuration_enabled" {
description = "If intelligent tiering should be enabled or not"
type = bool
default = false
}
variable "deep_archive_access_days" {
description = "The amount of days to pass before objects go into deep archive."
type = number
default = 180
}
variable "archieve_access_days" {
description = "The number of achieve days."
type = number
default = 125
}
variable "tls_enabled" {
description = "If TLS on the bucket should be enabled."
type = bool
default = true
}