Parcourir la source

Adds a lifecycle policy to delete teleport recordings after 90 days

To be tagged v1.24.8
Fred Damstra [afs macbook] il y a 4 ans
Parent
commit
a5a68adcee
1 fichiers modifiés avec 10 ajouts et 0 suppressions
  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" {