@cryptotaxi247 / infra / commits / 6818b023

Move releases to Infrequent Access after a year

Since we have 28 TB in this bucket, this gives a non-trivial savings.

Eelco Dolstra committed Sep 5, 2023 at 17:22 UTC 6818b023fc460760f0cb7ad62e7db7c9efc3975e
1 file changed +9
terraform/releases.tf
+9
@@ -13,6 +13,15 @@ locals {
13 resource "aws_s3_bucket" "releases" {
14 bucket = "nix-releases"
15
16 + lifecycle_rule {
17 + enabled = true
18 +
19 + transition {
20 + days = 365
21 + storage_class = "STANDARD_IA"
22 + }
23 + }
24 +
25 cors_rule {
26 allowed_headers = ["*"]
27 allowed_methods = ["HEAD", "GET"]