Context
infra/terraform-test/ and infra/terraform-staging/ were added, mirroring infra/terraform-prod/'s architecture tier (managed Postgres Flexible Server, private VNet, private endpoints, Container Apps Job). They're code only — no Azure resources exist yet, and terraform init/apply won't work until the one-time setup below is done. This issue is the reminder to do that setup before actioning (applying) either stack.
Follow docs/PROD_DEPLOY.md's "One-time setup" section as the template, substituting test/staging for prod throughout.
Checklist — Test environment
Checklist — Staging environment
Cost warning
Each stack runs the same architecture tier as Prod — roughly AUD 285-385/mo per environment at default sizing (see the cost estimate in each main.tf header). Applying both Test and Staging on top of the existing Dev + Prod stacks meaningfully increases total Azure spend. Review terraform plan and the SKU/HA/backup defaults in each variables.tf before running apply.
Do not apply casually
terraform apply in either stack provisions real, billed Azure resources (Flexible Server, VNet, private endpoints, Key Vault, ACR Premium, Log Analytics). Don't run it until the setup above is complete and the plan has been reviewed.
Context
infra/terraform-test/andinfra/terraform-staging/were added, mirroringinfra/terraform-prod/'s architecture tier (managed Postgres Flexible Server, private VNet, private endpoints, Container Apps Job). They're code only — no Azure resources exist yet, andterraform init/applywon't work until the one-time setup below is done. This issue is the reminder to do that setup before actioning (applying) either stack.Follow
docs/PROD_DEPLOY.md's "One-time setup" section as the template, substitutingtest/stagingforprodthroughout.Checklist — Test environment
tfstatecontainer) fortestbackend "azurerm"block ininfra/terraform-test/main.tfand fill in the realstorage_account_nametestEnvironment + secrets (mirroring theproductionEnvironment setup indocs/PROD_DEPLOY.md)terraform init/plan— review the plan and cost impact beforeapplyChecklist — Staging environment
tfstatecontainer) forstagingbackend "azurerm"block ininfra/terraform-staging/main.tfand fill in the realstorage_account_namestagingEnvironment + secretsterraform init/plan— review the plan and cost impact beforeapplyCost warning
Each stack runs the same architecture tier as Prod — roughly AUD 285-385/mo per environment at default sizing (see the cost estimate in each
main.tfheader). Applying both Test and Staging on top of the existing Dev + Prod stacks meaningfully increases total Azure spend. Reviewterraform planand the SKU/HA/backup defaults in eachvariables.tfbefore runningapply.Do not apply casually
terraform applyin either stack provisions real, billed Azure resources (Flexible Server, VNet, private endpoints, Key Vault, ACR Premium, Log Analytics). Don't run it until the setup above is complete and the plan has been reviewed.