From abf6980db81652150bc138dc40909c71034b1372 Mon Sep 17 00:00:00 2001 From: Pierre <397503+bemble@users.noreply.github.com> Date: Tue, 3 Dec 2024 16:28:09 +0100 Subject: [PATCH] OHF public assets (#120) * feat: add ohf-public-assets bucket * fix resource name * bump TF and typo --- 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..ba506bc --- /dev/null +++ b/ohf-public-assets/bucket.tf @@ -0,0 +1,5 @@ +resource "cloudflare_r2_bucket" "ohf_public_assets" { + account_id = var.CLOUDFLARE_ACCOUNT_ID + name = "ohf-public-assets" + location = "ENAM" +} diff --git a/ohf-public-assets/main.tf b/ohf-public-assets/main.tf new file mode 100644 index 0000000..d39edc6 --- /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.10.0" + + 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 +}