forked from cloudposse/terraform-aws-lb-s3-bucket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
75 lines (64 loc) · 2.46 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
variable "acl" {
type = string
description = "Canned ACL to apply to the S3 bucket"
default = "log-delivery-write"
}
variable "bucket_name" {
type = string
default = null
description = "Bucket name. If provided, the bucket will be created with this name instead of generating the name from the context"
}
variable "force_destroy" {
type = bool
default = false
description = <<-EOT
When `true`, permits a non-empty S3 bucket to be deleted by first deleting all objects in the bucket.
THESE OBJECTS ARE NOT RECOVERABLE even if they were versioned and stored in Glacier.
Must be set `false` unless `force_destroy_enabled` is also `true`.
EOT
}
variable "access_log_bucket_name" {
type = string
description = "Name of the S3 bucket where S3 access logs will be sent to"
default = ""
}
variable "access_log_bucket_prefix" {
type = string
description = "Prefix to prepend to the current S3 bucket name, where S3 access logs will be sent to"
default = null
}
variable "s3_object_ownership" {
type = string
description = "Specifies the S3 object ownership control. Valid values are `ObjectWriter`, `BucketOwnerPreferred`, and 'BucketOwnerEnforced'."
default = "BucketOwnerPreferred"
}
variable "allow_ssl_requests_only" {
type = bool
description = "Require requests to use Secure Socket Layer (HTTPS/SSL)."
default = true
}
variable "versioning_enabled" {
type = bool
description = "Enable object versioning, keeping multiple variants of an object in the same bucket"
default = true
}
variable "lifecycle_configuration_rules" {
type = list(object({
enabled = bool
id = string
abort_incomplete_multipart_upload_days = number
# `filter_and` is the `and` configuration block inside the `filter` configuration.
# This is the only place you should specify a prefix.
filter_and = any
expiration = any
transition = list(any)
noncurrent_version_expiration = any
noncurrent_version_transition = list(any)
}))
default = []
description = <<-EOT
A list of S3 bucket v2 lifecycle rules, as specified in [terraform-aws-s3-bucket](https://github.com/cloudposse/terraform-aws-s3-bucket)"
These rules are not affected by the deprecated `lifecycle_rule_enabled` flag.
**NOTE:** Unless you also set `lifecycle_rule_enabled = false` you will also get the default deprecated rules set on your bucket.
EOT
}