Domains
Custom domain per stage, mapped onto the shared REST API.
API domains
custom.domainConfig in serverless.common.yml:
| Stage | Domain | Certificate |
|---|---|---|
| dev | dev-api.drivemustang.com.au | *.drivemustang.com.au |
| staging | staging-api.drivemustang.com.au | *.drivemustang.com.au |
| prod | api.drive.com.au | *.drive.com.au |
custom:
domainConfig:
rootDomain:
dev: drivemustang.com.au
staging: drivemustang.com.au
prod: drive.com.au
certificate:
dev: "*.drivemustang.com.au"
staging: "*.drivemustang.com.au"
prod: "*.drive.com.au"
domain:
dev: dev-api.drivemustang.com.au
staging: staging-api.drivemustang.com.au
prod: api.drive.com.auACM cert in us-east-1 (CloudFront requirement); ARN via Terraform var apig_custom_domain_cert_arn.
Custom domain mapping
Base path mapping + custom domain provisioned in Terraform (main.apig.tf per env). REST API ID + root resource ID published to SSM for Serverless.
Downstream domains
| Service | URL (prod) |
|---|---|
| Tailpipe GraphQL | https://drive-tailpipe-prod.graphcdn.app/ |
| Carsforsale GraphQL | https://drive-carsforsale-prod.graphcdn.app/ |
| Leads enquiry backend | https://leads-api.drive.com.au/v1/ |
| OTLP gateway | https://otlp.drive.com.au |
dev/staging variants use staging-* or the shared root domain from SSM (/shared/drive/domains/root).
Docs domain
This site: https://docs.drive.com.au/drive-apig/ via Cloudflare Pages + the shared drive-docs router Worker. See Cloudflare Pages.