From f6b6e24950414da1ff8fbee1fce04185580f29ae Mon Sep 17 00:00:00 2001 From: Pierre <397503+bemble@users.noreply.github.com> Date: Tue, 3 Dec 2024 15:52:13 +0100 Subject: [PATCH] feat: add ohf-public-assets bucket --- ohf-public-assets/bucket.tf | 5 +++++ ohf-public-assets/main.tf | 18 ++++++++++++++++++ ohf-public-assets/variables.tf | 4 ++++ 3 files changed, 27 insertions(+) create mode 100644 ohf-public-assets/bucket.tf create mode 100644 ohf-public-assets/main.tf create mode 100644 ohf-public-assets/variables.tf diff --git a/ohf-public-assets/bucket.tf b/ohf-public-assets/bucket.tf new file mode 100644 index 0000000..50a8f23 --- /dev/null +++ b/ohf-public-assets/bucket.tf @@ -0,0 +1,5 @@ +resource "cloudflare_r2_bucket" "os_build_artifacts" { + account_id = var.CLOUDFLARE_ACCOUNT_ID + name = "ohf-public-assets" + location = "ENAM" +} \ No newline at end of file diff --git a/ohf-public-assets/main.tf b/ohf-public-assets/main.tf new file mode 100644 index 0000000..0fdd00b --- /dev/null +++ b/ohf-public-assets/main.tf @@ -0,0 +1,18 @@ +terraform { + cloud { + organization = "home_assistant" + + workspaces { + name = "ohf-public-assets" + } + } + + required_version = "= 1.9.6" + + required_providers { + cloudflare = { + source = "cloudflare/cloudflare" + version = "~> 4.0" + } + } +} diff --git a/ohf-public-assets/variables.tf b/ohf-public-assets/variables.tf new file mode 100644 index 0000000..29eee8e --- /dev/null +++ b/ohf-public-assets/variables.tf @@ -0,0 +1,4 @@ +variable "CLOUDFLARE_ACCOUNT_ID" { + description = "Cloudflare Account Id" + type = string +}