-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
56 lines (50 loc) · 1.41 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
variable "allowed_account_ids" {
default = []
description = "Optional list of AWS Account IDs that are permitted to write to the bucket"
type = list(string)
}
variable "lifecycle_rules" {
description = "lifecycle rules to apply to the bucket"
default = [
{
id = "expire-noncurrent-objects-after-ninety-days"
noncurrent_version_expiration = 90
},
{
id = "transition-to-IA-after-30-days"
transition = [{
days = 30
storage_class = "STANDARD_IA"
}]
},
{
id = "delete-after-seven-years"
expiration = 2557
},
]
type = list(object(
{
id = string
enabled = optional(bool, true)
expiration = optional(number)
prefix = optional(number)
noncurrent_version_expiration = optional(number)
transition = optional(list(object({
days = number
storage_class = string
})))
}))
}
variable "logging_bucket" {
description = "S3 bucket to send request logs to the VPC flow log bucket to"
type = string
}
variable "region" {
description = "Region VPC flow logs will be sent to"
type = string
}
variable "tags" {
default = {}
description = "Tags to include on resources that support it"
type = map(string)
}