Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions terraform/apps/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -181,3 +181,29 @@ output "pakistan_2003_required_dns" {
description = "DNS records required at the registrar to verify and serve the custom domain"
value = google_firebase_hosting_custom_domain.pakistan_2003.required_dns_updates
}

# ── thehighlands Outputs ────────────────────────────────────
output "thehighlands_wif_provider" {
description = "WIF_PROVIDER for thehighlands repo GitHub secrets"
value = module.thehighlands_identity.wif_provider
}

output "thehighlands_gcp_sa_email" {
description = "GCP_SA_EMAIL for thehighlands repo GitHub secrets"
value = module.thehighlands_identity.ci_cd_sa_email
}

output "thehighlands_hosting_url" {
description = "Firebase Hosting URL"
value = module.thehighlands_hosting.site_url
}

output "thehighlands_custom_domain" {
description = "Custom domain for thehighlands"
value = google_firebase_hosting_custom_domain.thehighlands.custom_domain
}

output "thehighlands_required_dns" {
description = "DNS records required at the registrar to verify and serve the custom domain"
value = google_firebase_hosting_custom_domain.thehighlands.required_dns_updates
}
45 changes: 45 additions & 0 deletions terraform/apps/thehighlands.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# ─────────────────────────────────────────────────────────────
# thehighlands — Static property development site (pre-rendered HTML)
# ─────────────────────────────────────────────────────────────
# Migrated from legacy PHP hosting. Pre-rendered from PHP templates
# and served entirely from Firebase Hosting — no Cloud Run, no DB.
# Contact form posts to Formspree; no server-side handling.
# ─────────────────────────────────────────────────────────────

module "thehighlands_identity" {
source = "../modules/app-identity"

project_id = var.project_id
app_name = "thehighlands"
github_org = var.github_org
github_repo = "thehighlands"
wif_pool_id = var.wif_pool_id
wif_pool_name = var.wif_pool_name

ci_cd_roles = [
"roles/firebasehosting.admin",
"roles/firebase.admin",
"roles/iam.serviceAccountUser",
"roles/serviceusage.serviceUsageConsumer",
]

runtime_roles = [
"roles/logging.logWriter",
]
}

module "thehighlands_hosting" {
source = "../modules/hosting"

project_id = var.project_id
site_id = "thehighlands"
}

resource "google_firebase_hosting_custom_domain" "thehighlands" {
provider = google-beta
project = var.project_id
site_id = module.thehighlands_hosting.site_id
custom_domain = "thehighlands.junaid.guru"

wait_dns_verification = false
}
26 changes: 26 additions & 0 deletions terraform/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -193,3 +193,29 @@ output "pakistan_2003_required_dns" {
description = "DNS records required at the registrar to verify and serve the pakistan-2003 custom domain"
value = module.apps.pakistan_2003_required_dns
}

# ── thehighlands ────────────────────────────────────────────
output "thehighlands_wif_provider" {
description = "WIF_PROVIDER for thehighlands repo GitHub secrets"
value = module.apps.thehighlands_wif_provider
}

output "thehighlands_gcp_sa_email" {
description = "GCP_SA_EMAIL for thehighlands repo GitHub secrets"
value = module.apps.thehighlands_gcp_sa_email
}

output "thehighlands_hosting_url" {
description = "thehighlands Firebase Hosting URL"
value = module.apps.thehighlands_hosting_url
}

output "thehighlands_custom_domain" {
description = "thehighlands custom domain"
value = module.apps.thehighlands_custom_domain
}

output "thehighlands_required_dns" {
description = "DNS records required at the registrar to verify and serve the thehighlands custom domain"
value = module.apps.thehighlands_required_dns
}
Loading