deploy/terraform/azure on main of the product repository. It is self-contained: copy that folder, or use the copy in your license zip, and run Terraform without the rest of the repository. It creates one Container App (external HTTPS, port 3000) and Azure Database for PostgreSQL Flexible Server with the vector extension allow-listed. The image is public ghcr.io/rahilp/backtale pinned by digest. Leave registry credentials empty.
This is a first-install shape: one replica, and a firewall rule that allows Azure services. Private networking, Key Vault references, and a custom domain are follow-on work.
Before apply
- Azure CLI signed in (
az login) with rights to create a resource group - Terraform 1.5 or later
- The digest and
cosign.pubfrom your order. Verify the image beforeterraform apply.
Apply
1
Set the digest and the public URL
license_file_path is a note for you. Terraform does not mount the license file.2
Create the resources
database_password, token_encryption_key, and auth_setup_token unset so Terraform generates them. After the first apply, set app_base_url to https:// plus the container_app_fqdn output (or your custom domain) and apply again so links match the host people use.3
Create the vector extension
As the database admin, on the
backtale database:4
Save the encryption key
https://<fqdn>/setup with terraform output -raw auth_setup_token. Continue with First run, then remove AUTH_SETUP_TOKEN from the Container App secrets and env and create a new revision.GET /api/health, readiness GET /api/health/ready. Do not restart the replica because readiness failed.
Upgrade
Back up Flexible Server, verify the new digest, setimage_digest, and terraform apply. Read Upgrade by digest before you change an existing database.