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