Skip to content

Commit

Permalink
OHF public assets (#120)
Browse files Browse the repository at this point in the history
* feat: add ohf-public-assets bucket

* fix resource name

* bump TF and typo
  • Loading branch information
bemble authored Dec 3, 2024
1 parent 865782a commit abf6980
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ohf-public-assets/bucket.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
resource "cloudflare_r2_bucket" "ohf_public_assets" {
account_id = var.CLOUDFLARE_ACCOUNT_ID
name = "ohf-public-assets"
location = "ENAM"
}
18 changes: 18 additions & 0 deletions ohf-public-assets/main.tf
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
4 changes: 4 additions & 0 deletions ohf-public-assets/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
variable "CLOUDFLARE_ACCOUNT_ID" {
description = "Cloudflare Account Id"
type = string
}

0 comments on commit abf6980

Please sign in to comment.