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 @@ -155,3 +155,29 @@ output "amazingcar_2003_required_dns" {
description = "DNS records required at the registrar to verify and serve the custom domain"
value = google_firebase_hosting_custom_domain.amazingcar_2003.required_dns_updates
}

# ── pakistan-2003 Outputs ───────────────────────────────────
output "pakistan_2003_wif_provider" {
description = "WIF_PROVIDER for pakistan-2003 repo GitHub secrets"
value = module.pakistan_2003_identity.wif_provider
}

output "pakistan_2003_gcp_sa_email" {
description = "GCP_SA_EMAIL for pakistan-2003 repo GitHub secrets"
value = module.pakistan_2003_identity.ci_cd_sa_email
}

output "pakistan_2003_hosting_url" {
description = "Firebase Hosting URL"
value = module.pakistan_2003_hosting.site_url
}

output "pakistan_2003_custom_domain" {
description = "Custom domain for pakistan-2003"
value = google_firebase_hosting_custom_domain.pakistan_2003.custom_domain
}

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
}
45 changes: 45 additions & 0 deletions terraform/apps/pakistan-2003.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# ─────────────────────────────────────────────────────────────
# pakistan-2003 — Static travel site (pre-rendered HTML)
# ─────────────────────────────────────────────────────────────
# Migrated from OCI OKE. Pre-rendered from PHP templates and
# served entirely from Firebase Hosting — no Cloud Run, no DB.
# Contact is via mailto: only; no server-side form handling.
# ─────────────────────────────────────────────────────────────

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

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

project_id = var.project_id
site_id = "pakistan-2003"
}

resource "google_firebase_hosting_custom_domain" "pakistan_2003" {
provider = google-beta
project = var.project_id
site_id = module.pakistan_2003_hosting.site_id
custom_domain = "pakistan-2003.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 @@ -167,3 +167,29 @@ output "amazingcar_2003_required_dns" {
description = "DNS records required at the registrar to verify and serve the amazingcar-2003 custom domain"
value = module.apps.amazingcar_2003_required_dns
}

# ── pakistan-2003 ───────────────────────────────────────────
output "pakistan_2003_wif_provider" {
description = "WIF_PROVIDER for pakistan-2003 repo GitHub secrets"
value = module.apps.pakistan_2003_wif_provider
}

output "pakistan_2003_gcp_sa_email" {
description = "GCP_SA_EMAIL for pakistan-2003 repo GitHub secrets"
value = module.apps.pakistan_2003_gcp_sa_email
}

output "pakistan_2003_hosting_url" {
description = "pakistan-2003 Firebase Hosting URL"
value = module.apps.pakistan_2003_hosting_url
}

output "pakistan_2003_custom_domain" {
description = "pakistan-2003 custom domain"
value = module.apps.pakistan_2003_custom_domain
}

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