Add bucket logging (#134)

* Add logging

* Improve syntax

* Add example

* Improve type for retention policy
This commit is contained in:
vanessabodard-voi
2020-09-03 19:06:35 +02:00
committed by GitHub
parent c1b3459fd7
commit e8c227fdd6
3 changed files with 31 additions and 4 deletions

View File

@@ -86,6 +86,18 @@ variable "versioning" {
variable "retention_policies" {
description = "Per-bucket retention policy."
type = map(map(string))
type = map(object({
retention_period = number
is_locked = bool
}))
default = {}
}
variable "logging_config" {
description = "Per-bucket logging."
type = map(object({
log_bucket = string
log_object_prefix = string
}))
default = {}
}