diff options
Diffstat (limited to 'terraform/admin/backups.nix')
| -rw-r--r-- | terraform/admin/backups.nix | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/terraform/admin/backups.nix b/terraform/admin/backups.nix deleted file mode 100644 index ae021e5..0000000 --- a/terraform/admin/backups.nix +++ /dev/null @@ -1,28 +0,0 @@ -{ lib, ... }: -{ - resource.google_storage_bucket.backups = { - name = "fcuny-infra-backups"; - storage_class = "NEARLINE"; - force_destroy = true; - uniform_bucket_level_access = true; - public_access_prevention = "enforced"; - location = lib.tfRef "var.gcp_region"; - - lifecycle_rule = [ - { - condition.age = 365; # After 1 year - action = { - type = "SetStorageClass"; - storage_class = "COLDLINE"; - }; - } - { - condition.age = 730; # After 2 years - action = { - type = "SetStorageClass"; - storage_class = "ARCHIVE"; - }; - } - ]; - }; -} |
