Add support for lifecycle_rule in gcs module (#288) (#289)

* Add support for lifecycle_rule in gcs module (#288)

Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>

* fix docs

* rename unrelated interconnect module tests

* fix doc example test

Co-authored-by: iury <1934268+IuryAlves@users.noreply.github.com>
This commit is contained in:
Ludovico Magnocavallo
2021-07-30 12:07:17 +02:00
committed by GitHub
parent 598e4f5ee1
commit 202892b344
8 changed files with 79 additions and 0 deletions

View File

@@ -110,3 +110,25 @@ variable "cors" {
})
default = null
}
variable "lifecycle_rule" {
description = "Bucket lifecycle rule"
type = object({
action = object({
type = string
storage_class = string
})
condition = object({
age = number
created_before = string
with_state = string
matches_storage_class = list(string)
num_newer_versions = string
custom_time_before = string
days_since_custom_time = string
days_since_noncurrent_time = string
noncurrent_time_before = string
})
})
default = null
}