summaryrefslogtreecommitdiff
path: root/terraform/pages.tf
diff options
context:
space:
mode:
authorSeth Flynn <[email protected]>2025-01-31 08:14:23 -0500
committerSeth Flynn <[email protected]>2025-02-03 05:34:09 -0500
commit082ef6167ea188de4a0439fe63baaca41b19b45b (patch)
treec51217b3b47601ee95cacfeaeaef426fb7128a6d /terraform/pages.tf
parentd5ad065e31f4d84824463829eeabfb55dbe9ece4 (diff)
terraform: switch to plain hcl
• Removed input 'terranix' • Removed input 'terranix/bats-assert' • Removed input 'terranix/bats-support' • Removed input 'terranix/flake-parts' • Removed input 'terranix/nixpkgs' • Removed input 'terranix/systems' • Removed input 'terranix/terranix-examples'
Diffstat (limited to 'terraform/pages.tf')
-rw-r--r--terraform/pages.tf53
1 files changed, 53 insertions, 0 deletions
diff --git a/terraform/pages.tf b/terraform/pages.tf
new file mode 100644
index 0000000..4b212f1
--- /dev/null
+++ b/terraform/pages.tf
@@ -0,0 +1,53 @@
+resource "cloudflare_pages_project" "getchoo_website" {
+ account_id = var.cloudflare_account_id
+ name = "getchoo-website"
+ production_branch = "main"
+
+ build_config {
+ build_caching = true
+ build_command = "./build-site.sh"
+ destination_dir = "/dist"
+ }
+
+ source {
+ type = "github"
+ config {
+ owner = "getchoo"
+ repo_name = "website"
+ production_branch = "main"
+ }
+ }
+}
+
+resource "cloudflare_pages_domain" "getchoo_website" {
+ account_id = var.cloudflare_account_id
+ domain = "getchoo.com"
+ project_name = "getchoo-website"
+}
+
+resource "cloudflare_pages_project" "teawie_api" {
+ account_id = var.cloudflare_account_id
+ name = "teawie-api"
+ production_branch = "main"
+
+ build_config {
+ build_caching = true
+ build_command = "pnpm run lint && pnpm run build"
+ destination_dir = "/dist"
+ }
+
+ source {
+ type = "github"
+ config {
+ owner = "getchoo"
+ repo_name = "teawieAPI"
+ production_branch = "main"
+ }
+ }
+}
+
+resource "cloudflare_pages_domain" "teawie_api" {
+ account_id = var.cloudflare_account_id
+ domain = "api.getchoo.com"
+ project_name = "teawie-api"
+}