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" +}