Skip to content

Commit

Permalink
feat: Add is_live field to simple_bucket lifecycle (#76)
Browse files Browse the repository at this point in the history
* Fixes simple_bucket lifecycle created_before field lookup

* Adds is_live field to simple_bucket lifecycle
  • Loading branch information
rjmco authored Aug 17, 2020
1 parent f2f3d3c commit a16305d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/simple_bucket/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ resource "google_storage_bucket" "bucket" {
}
condition {
age = lookup(lifecycle_rule.value.condition, "age", null)
created_before = lookup(lifecycle_rule.value.condition, "storage_class", null)
created_before = lookup(lifecycle_rule.value.condition, "created_before", null)
is_live = lookup(lifecycle_rule.value.condition, "is_live", null)
with_state = lookup(lifecycle_rule.value.condition, "with_state", null)
matches_storage_class = lookup(lifecycle_rule.value.condition, "matches_storage_class", null)
num_newer_versions = lookup(lifecycle_rule.value.condition, "num_newer_versions", null)
Expand Down

0 comments on commit a16305d

Please sign in to comment.