Enforcing Data Residency for Data and Its Copies
This lesson explains how to keep data in particular countries or Regions as law, regulation or contract requires, for the data itself and for every copy: backups, replicas, snapshots and logs.
Learning outcomes
After completing this lesson, you will be able to:
- Enforce residency with Region selection and SCPs.
- Identify the copies that residency rules must cover.
- Exempt global services correctly.
Controls
Data residency rules require data to stay in particular countries or Regions, and several controls enforce this. The starting point is Region selection, deploying data stores only in approved Regions. To prevent anyone creating resources elsewhere, service control policies (SCPs) with the aws:RequestedRegion condition deny actions outside approved Regions across the organisation, so even administrators in member accounts cannot create resources elsewhere.
Copies can leak data too, so AWS Backup policies restrict where backups may be copied. Customer managed KMS keys keep control of who can decrypt the data wherever it is stored. The following table summarises the controls.
| Control | Role |
|---|---|
| Region selection | Deploy data stores only in approved Regions |
SCPs with aws:RequestedRegion | Deny actions outside approved Regions across the organisation |
| AWS Backup policies | Restrict backup copy destinations |
| Customer managed KMS keys | Keep control of who can decrypt data, wherever it is |
The following diagram shows what an SCP enforces for data residency and the copies that must be checked separately.

Copies to remember
Residency controls often focus on the primary data store, but data most often leaves a Region through copies. Each of the following creates a copy that residency rules must cover.
- S3 Cross-Region Replication, which copies objects to a bucket in another Region.
- Cross-Region snapshot copies for Amazon Redshift, Amazon RDS and Amazon EBS, often configured for disaster recovery.
- Backup copies to other Regions made by AWS Backup plans.
- Features that replicate automatically, such as DynamoDB global tables, Aurora Global Database and multi-Region KMS keys.
Disaster recovery requirements and residency requirements can conflict: a recovery Region must also be an approved Region, for example a second Region within the same country or economic area.
Copies that leave a Region
Exemptions
Some AWS services are global rather than Regional, and their API calls are processed through a specific Region, usually US East (N. Virginia). These include AWS Identity and Access Management (IAM), AWS Organizations, Amazon CloudFront and AWS Support. An SCP that denies every action outside approved Regions would therefore also block these services, and administration of the organisation would stop working.
Region-restricting SCPs are therefore written with a NotAction element that lists the global services to exempt, so that the deny applies to everything else. Approved exceptions are added to that list rather than by removing or weakening the control, which keeps the restriction in force for all data services.
An SCP that blocks administration
Keeping EU data in the EU
Regulators require that customer data stays in the EU. An SCP attached to the data OU denies actions outside the approved Regions, with exemptions for global services, as follows.
{
"Effect": "Deny",
"NotAction": ["iam:*", "organizations:*", "sts:*", "support:*", "cloudfront:*", "route53:*"],
"Resource": "*",
"Condition": { "StringNotEquals": { "aws:RequestedRegion": ["eu-west-1", "eu-central-1"] } }
}The team also checks the copies that an SCP alone does not reveal: S3 replication rules, Redshift cross-Region snapshot copies and backup copy destinations, and restricts AWS Backup with a backup policy. AWS Config rules report any replication configuration that targets a non-EU bucket.
How can data and backups be stopped from leaving approved Regions?
Show answer
With a service control policy that denies actions where aws:RequestedRegion is not an approved Region.
Exam Tips
Remember for the exam
- To stop data and backups leaving approved Regions, use an SCP on aws:RequestedRegion.
- Remember replicas, snapshot copies and backups when enforcing residency.
- S3 data stays in the bucket's Region unless replication or copying is configured.
- Region-restricting SCPs must exempt global services.
- Restrict AWS Backup copy destinations with backup policies.