You answer a procurement questionnaire from a Quebec public-sector buyer and the row that holds up the sale is “Data Residency: where is customer data stored, processed, and backed up — at rest, in transit, and in incident response.” You write “Canada.” The follow-up question is “all of it, including the CDN, the error-tracking platform, the email-sending service, and the support-ticket exports?” You realize you do not know. By the time you have audited every dependency, you find three quiet egress paths — a Sentry self-hosted instance accidentally pointed at a US cluster, a transactional email sender whose default region rotated to us-east-1 last year, and a backup-job log stream that ships to a global aggregator. None of these touched the application database, but each of them processes personal information on behalf of Canadian customers, and each of them is now a line in the privacy impact assessment that the deal hangs on.
This is the data-residency conversation in its full operational form. The answer “we host in Canada” is necessary but never sufficient.
What’s happening
A defensible Canadian-only architecture is three things at once: a residency pin at the primary infrastructure layer, a documented sub-processor inventory where every entry is residency-verified, and a data-flow diagram that names every place personal information crosses a security boundary. The architecture is not exotic — most cloud providers offer a Canada Central region and a Canada East region — but the discipline that holds it together is exhausting if it is run as a one-time exercise. It has to be a continuous control, with verification baked into the change-management runbook so that nobody adds a new sub-processor to the stack without the residency review happening.
The primary infrastructure pin is the easy part. AWS ca-central-1, GCP northamerica-northeast1 (Montréal) and northamerica-northeast2 (Toronto), Azure Canada Central and Canada East — pick one or two regions, pin every primary resource, configure the cloud account to refuse provisioning outside those regions through a Service Control Policy or its equivalent. The configuration is single-line per region; the discipline is that it is enforced as a policy, not just a habit.
The harder part is what happens around the edges. The CDN serving your static assets, by default, replicates to a global edge network — Canadian users get Canadian POPs, but the content is replicated to US POPs as well, and a misrouted DNS response could resolve a Canadian user to a US POP. For most static-asset traffic this is acceptable (the cached HTML and images are not personal information) but for personalized responses it is not. The fix is either a Canadian-only POP configuration if the CDN supports it, or routing personalized responses through your origin rather than the CDN. Either way, the architecture document has to name it explicitly.
The error-tracking platform, the transactional email sender, the log aggregator, the support-ticket tool, the calendar-scheduling tool, the form-builder embedded in your marketing site — every one of these processes personal information. Every one of them has a default region that is rarely Canada. Most offer a Canadian residency option, sometimes only on enterprise tiers. The sub-processor inventory is the document that lists each one, where its data is hosted, what data it receives, the contractual residency commitment, and the renewal date for the residency review. It is a living document. Quarterly review is the cadence we operate on managed environments.
The data-flow diagram is the artifact that the privacy officer signs. It is not a marketing diagram. Every box is a system that processes personal information. Every arrow is a data flow with a brief description of what crosses it. Every box is annotated with the region pin and the sub-processor’s residency status. The diagram fits on a page. It is the document the procurement reviewer asks for, the document the auditor reads first, and the document that breaks immediately the moment somebody adds a new tool without updating it.
How to verify
Verify the cloud-region pin first — the policy that refuses provisioning outside the pinned regions.
# AWS Service Control Policy verification — what regions are allowed?
aws organizations list-policies --filter SERVICE_CONTROL_POLICY \
--query 'Policies[?Name==`region-pin-canada`]'
# Then dump the policy document and confirm the allowed regions
aws organizations describe-policy --policy-id p-xxxxxxx \
--query 'Policy.Content' --output text | jq '.Statement[] | select(.Sid=="DenyOutsideCanada")'
# Inventory current resources and confirm none are outside the pin
aws resourcegroupstaggingapi get-resources --region us-east-1 \
--query 'ResourceTagMappingList[].ResourceARN' --output text | head
# Expected: empty (no resources in us-east-1 under your account)
Verify the sub-processor inventory is current. The inventory should live in the same change-management trail as your runbooks, with each entry timestamped and dated.
# Example: sub-processor inventory stored as a CSV under version control
cd /etc/compliance/sub-processors
git log -1 --format=%cd # last update date
wc -l inventory.csv # number of entries
awk -F',' '$3 != "Canada" {print}' inventory.csv # entries not residency-pinned to Canada
Verify the CDN configuration. Most CDNs expose a region-restriction setting at the configuration API level.
# Cloudflare example — confirm geo restriction on a zone
curl -H "Authorization: Bearer $CF_TOKEN" \
"https://api.cloudflare.com/client/v4/zones/${ZONE_ID}/settings/geo_restrictions" \
| jq '.result'
Verify the log-aggregator and error-tracker endpoints resolve to Canadian destinations from the application’s network:
for host in errors.acme.com logs.acme.com mail.acme.com; do
echo "=== $host ==="
dig +short "$host"
for ip in $(dig +short "$host" | head -3); do
curl -s "https://ipapi.co/${ip}/country/" && echo
done
done
# Expected: "CA" for every result; anything else is a residency issue.
If any of these returns a result outside Canada, the architecture document is wrong. Either the document or the deployment needs to change, not both.
The fix
The fix is a three-document set, kept in the same repository as the infrastructure code, reviewed quarterly, and required reading on the change-management runbook.
Document 1: the data-flow diagram. A single page, generated from a source file that can be diffed — Mermaid, PlantUML, or a draw.io XML file. Every box is a system that processes personal information. Every arrow is annotated with what flows over it. Every box has a footer that reads “Region: ca-central-1” or Sub-processor: <name>, residency: Canada (contract date). The Mermaid version we ship with managed-environment clients looks like this:
flowchart LR
user[Canadian end-user] -->|HTTPS, TLS 1.3| cdn[CDN — Canada-only POPs]
cdn -->|origin pull| lb[ALB — ca-central-1]
lb --> app[App tier — ca-central-1]
app --> db[(RDS Postgres — ca-central-1, encrypted)]
app --> obj[(S3 — ca-central-1, encrypted)]
app --> mail[Postmark — Canadian server tier]
app --> err[Sentry self-hosted — ca-central-1]
app --> log[Loki — ca-central-1]
log --> cold[(S3 archive — ca-central-1, object-lock 7y)]
db --> bak[(Backup — ca-central-1, KMS-encrypted)]
classDef ca fill:#dff,stroke:#06c
class cdn,lb,app,db,obj,mail,err,log,cold,bak ca
Document 2: the sub-processor inventory. A CSV under version control. One row per sub-processor, with columns: name, category (CDN, mail, error-tracking, log-aggregator, etc), region of processing, residency-pin mechanism (region setting, contractual side letter, enterprise tier), contract renewal date, owner (the person responsible for the quarterly review), and last review date. The CSV is the source of truth; the diagram cites the names from the CSV. Adding a row to the CSV is a change-managed event.
Document 3: the deviation register. Where the architecture has to deviate — for example, an enterprise sub-processor with no Canadian region whose service the product depends on — the deviation is documented, reviewed by the privacy officer, signed, and time-bounded. The deviation register is the document that says “we know about this and here is the mitigation”; it is the document that prevents the auditor from finding a residency issue that you do not already know about.
The AWS Service Control Policy that pins regions sits in the management account and refuses provisioning anywhere else. The policy is short enough to read end-to-end:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "DenyOutsideCanada",
"Effect": "Deny",
"NotAction": [
"iam:*", "organizations:*", "route53:*",
"cloudfront:*", "support:*", "kms:CreateKey", "kms:DescribeKey"
],
"Resource": "*",
"Condition": {
"StringNotEquals": {
"aws:RequestedRegion": ["ca-central-1", "ca-west-1"]
}
}
}
]
}
The NotAction carve-out is the part that almost always needs tuning — IAM and Route 53 are global services, CloudFront has no Canadian region selection at the service level (the distribution is global by design), and the KMS metadata operations are region-agnostic. The carve-out is the deviation register entry for each of those services, with the mitigating control documented (CloudFront geo-restriction on the distribution, no Personal information cached at the edge for personalized content, etc).
Operate the architecture under a change-management runbook that includes a residency-review step for every new sub-processor. The step is one paragraph: “Before adding a sub-processor, the proposed sub-processor’s data-residency posture is documented in the inventory CSV, the data-flow diagram is updated, and the privacy officer signs off. The PR that adds the dependency cannot merge without the CSV update and the privacy-officer review attached.” That paragraph is the entire control. It is also what an auditor wants to read.
If your data-residency posture is more aspirational than verified, Managed Cloud Ops operates the residency review as part of the change-management runbook — or open a residency-audit conversation if your next procurement cycle is going to ask the question we opened this article with.