Explorar o código

Adds a lifecycle policy to delete teleport recordings after 90 days

To be tagged v1.24.8
Fred Damstra [afs macbook] %!s(int64=4) %!d(string=hai) anos
pai
achega
a5a68adcee
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  1. 10 0
      base/teleport-single-instance/s3.tf

+ 10 - 0
base/teleport-single-instance/s3.tf

@@ -17,6 +17,16 @@ resource "aws_s3_bucket" "storage" {
       }
     }
   }
+
+  lifecycle_rule {
+    id = "DeleteAfter90Days"
+    enabled = true
+    abort_incomplete_multipart_upload_days = 7
+
+    expiration {
+      days = 90
+    }
+  }
 }
 
 resource "aws_s3_bucket_public_access_block" "awsconfig_bucket_block_public_access" {