This repository has been archived by the owner on Jun 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
66 lines (55 loc) · 1.63 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
variable "enabled" {
# Remove this when https://github.com/hashicorp/terraform/issues/953 is solved
description = "If set to false, the module will do nothing. This exists because there can be no `count` meta-parameter for a module"
type = bool
default = true
}
variable "local_prefix" {}
variable "global_prefix" {}
variable "name" {}
variable "tags" {
type = map(string)
}
variable "versioning" {
type = bool
default = false
}
variable "sns_topic" {
description = "Whether to create an SNS topic and publish S3 object creations to it"
type = bool
default = false
}
variable "read_accounts" {
description = "List of other AWS accounts which should get read access to the bucket - and subscribe access to its SNS topic"
type = list(string)
default = []
}
variable "read_prefix" {
description = "Prefix of object keys to restrict cross-account reads to"
type = string
default = ""
}
variable "write_accounts" {
description = "List of other AWS accounts which should get write access to the bucket"
type = list(string)
default = []
}
variable "write_key_pattern" {
description = "Pattern of object keys allowed for cross-account writes"
type = string
default = "*"
}
variable "lifecycle_rules" {
type = list(any)
default = []
}
variable "protect" {
description = "Whether to protect the bucket (and the SNS topic if created) from deletion"
type = bool
default = false
}
variable "enable_website" {
description = "Whether to make the bucket available as a static website"
type = bool
default = false
}