@cryptotaxi247 / infra-1 / commits / 6941ee55

Add manually added rule to move fastly logs to glacier

Eelco Dolstra committed Sep 7, 2023 at 12:12 UTC 6941ee55e6566a43cfba3800011b952df228635c
1 file changed +11
terraform/fastlylog/main.tf
+11
@@ -8,6 +8,17 @@ resource "aws_s3_bucket" "logs" {
8 days = 365
9 }
10 }
11 +
12 + lifecycle_rule {
13 + id = "move-to-glacier"
14 +
15 + enabled = true
16 +
17 + transition {
18 + days = 14
19 + storage_class = "DEEP_ARCHIVE"
20 + }
21 + }
22 }
23
24 resource "aws_s3_bucket_policy" "logs" {