cache_log: expire bucket logs after 30 days (#307)
Since https://cs.tvl.fyi/depot/-/commit/e4adca0880547f2ea825aeec5f64671c6c0324ae the archaeology ec2 instance aggregates logs daily at 3am UTC, so there's no need to keep it around for 120 days. We can delete it after 30 days, rather than moving it to IA. Theoretically, we could even delete it after a day or two, but this gives us some slack to notice the job aggregation failed.
Florian Klink committed
Nov 14, 2023 at 19:34 UTC
c661560e3106e617be00010b087d4fcfe3ed324b
1 file changed
+1
-6
terraform/cache_log.tf
+1
-6
@@ -22,13 +22,8 @@ resource "aws_s3_bucket_lifecycle_configuration" "cache_log" {
22
id = "rule-1"
23
status = "Enabled"
24
25
- transition {
26
- days = 30
27
- storage_class = "ONEZONE_IA"
28
- }
29
-
25
expiration {
31
- days = "120"
26
+ days = "30"
27
}
28
}
29
}