From e4ff6fff8148255fc73e53d4bcb9c2b0a1a49612 Mon Sep 17 00:00:00 2001 From: ludeeus Date: Thu, 28 Sep 2023 05:49:38 +0000 Subject: [PATCH] Add os-builds --- os-builds/bucket.tf | 5 +++++ os-builds/main.tf | 17 +++++++++++++++++ os-builds/variables.tf | 4 ++++ 3 files changed, 26 insertions(+) create mode 100644 os-builds/bucket.tf create mode 100644 os-builds/main.tf create mode 100644 os-builds/variables.tf diff --git a/os-builds/bucket.tf b/os-builds/bucket.tf new file mode 100644 index 0000000..89aeeee --- /dev/null +++ b/os-builds/bucket.tf @@ -0,0 +1,5 @@ +resource "cloudflare_r2_bucket" "os_build_artifacts" { + account_id = var.CLOUDFLARE_ACCOUNT_ID + name = "os-build-artifacts" + location = "ENAM" +} \ No newline at end of file diff --git a/os-builds/main.tf b/os-builds/main.tf new file mode 100644 index 0000000..88c48a7 --- /dev/null +++ b/os-builds/main.tf @@ -0,0 +1,17 @@ +terraform { + cloud { + organization = "home_assistant" + + workspaces { + name = "os-builds" + } + } + + + required_providers { + cloudflare = { + source = "cloudflare/cloudflare" + version = "~> 4" + } + } +} diff --git a/os-builds/variables.tf b/os-builds/variables.tf new file mode 100644 index 0000000..29eee8e --- /dev/null +++ b/os-builds/variables.tf @@ -0,0 +1,4 @@ +variable "CLOUDFLARE_ACCOUNT_ID" { + description = "Cloudflare Account Id" + type = string +}