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
45 changes: 45 additions & 0 deletions terraform/apps/crea8ivedesign.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# ─────────────────────────────────────────────────────────────
# crea8ivedesign — Static design-studio marketing 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.
# Order/contact flows are mock only; no server-side handling.
# ─────────────────────────────────────────────────────────────

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

project_id = var.project_id
app_name = "crea8ivedesign"
github_org = var.github_org
github_repo = "crea8ivedesign"
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 "crea8ivedesign_hosting" {
source = "../modules/hosting"

project_id = var.project_id
site_id = "crea8ivedesign"
}

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

wait_dns_verification = false
}
26 changes: 26 additions & 0 deletions terraform/apps/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -207,3 +207,29 @@ 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
}

# ── crea8ivedesign Outputs ──────────────────────────────────
output "crea8ivedesign_wif_provider" {
description = "WIF_PROVIDER for crea8ivedesign repo GitHub secrets"
value = module.crea8ivedesign_identity.wif_provider
}

output "crea8ivedesign_gcp_sa_email" {
description = "GCP_SA_EMAIL for crea8ivedesign repo GitHub secrets"
value = module.crea8ivedesign_identity.ci_cd_sa_email
}

output "crea8ivedesign_hosting_url" {
description = "Firebase Hosting URL"
value = module.crea8ivedesign_hosting.site_url
}

output "crea8ivedesign_custom_domain" {
description = "Custom domain for crea8ivedesign"
value = google_firebase_hosting_custom_domain.crea8ivedesign.custom_domain
}

output "crea8ivedesign_required_dns" {
description = "DNS records required at the registrar to verify and serve the custom domain"
value = google_firebase_hosting_custom_domain.crea8ivedesign.required_dns_updates
}
26 changes: 26 additions & 0 deletions terraform/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -219,3 +219,29 @@ 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
}

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

output "crea8ivedesign_gcp_sa_email" {
description = "GCP_SA_EMAIL for crea8ivedesign repo GitHub secrets"
value = module.apps.crea8ivedesign_gcp_sa_email
}

output "crea8ivedesign_hosting_url" {
description = "crea8ivedesign Firebase Hosting URL"
value = module.apps.crea8ivedesign_hosting_url
}

output "crea8ivedesign_custom_domain" {
description = "crea8ivedesign custom domain"
value = module.apps.crea8ivedesign_custom_domain
}

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