From bea643f627514f57279ed9804dee1fe0d98b36ae Mon Sep 17 00:00:00 2001 From: Lander Van den Bulcke Date: Fri, 10 Jan 2025 17:25:36 +0100 Subject: [PATCH] feat: create attic bucket Signed-off-by: Lander Van den Bulcke --- buckets.tf | 7 +++++++ variables.tf | 7 +++++-- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 buckets.tf diff --git a/buckets.tf b/buckets.tf new file mode 100644 index 0000000..f99d4c4 --- /dev/null +++ b/buckets.tf @@ -0,0 +1,7 @@ +# Bucket for storage of nix cache +resource "cloudflare_r2_bucket" "attic" { + account_id = var.account_id + name = "attic" + location = "weur" + storage_class = "Standard" +} diff --git a/variables.tf b/variables.tf index 139597f..ee6e67d 100644 --- a/variables.tf +++ b/variables.tf @@ -1,2 +1,5 @@ - - +variable "account_id" { + type = string + description = "Cloudflare account ID" + default = "daf6ae2391d4d68ecf3c5af2f1540f5c" +}