Skip to content

Commit 0abd13d

Browse files
feat: update osv_vulnerabilities_export terraform config to match prod (#5247)
Updates the `osv_vulnerabilities_export` bucket configuration to include: - `versioning { enabled = true }` - `lifecycle_rule` to delete objects with `num_newer_versions = 673` and `with_state = "ARCHIVED"` - `lifecycle_rule` to delete objects with `days_since_noncurrent_time = 7` and `with_state = "ANY"` --- *PR created automatically by Jules for task [11623816002459219893](https://jules.google.com/task/11623816002459219893) started by @another-rex* Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
1 parent d0ea212 commit 0abd13d

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

  • deployment/terraform/modules/osv

deployment/terraform/modules/osv/main.tf

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,30 @@ resource "google_storage_bucket" "osv_vulnerabilities_export" {
103103
location = "US"
104104
uniform_bucket_level_access = true
105105

106+
versioning {
107+
enabled = true
108+
}
109+
110+
lifecycle_rule {
111+
action {
112+
type = "Delete"
113+
}
114+
condition {
115+
num_newer_versions = 673
116+
with_state = "ARCHIVED"
117+
}
118+
}
119+
120+
lifecycle_rule {
121+
action {
122+
type = "Delete"
123+
}
124+
condition {
125+
days_since_noncurrent_time = 7
126+
with_state = "ANY"
127+
}
128+
}
129+
106130
lifecycle {
107131
prevent_destroy = true
108132
}

0 commit comments

Comments
 (0)