Build it yourself, or use Washery
A script, AWS Glue or AWS DMS will mask a database. Washery gives your developers a masked copy they can use, checked before delivery and refreshed on your schedule.
What Washery does that a script or a pipeline does not
- It writes the masking policy for you
- Washery proposes a method for every column that holds sensitive data. You review it, change what you like and approve it.
- Masked data still passes your tests
- Names become made-up names. Card numbers and tax file numbers keep their format and pass their checks, and joins still match.
- A new column stops the run
- When your schema changes, the run stops and the schedule pauses until you approve a new policy. A script keeps running.
- Every copy is checked before developers get it
- Washery checks a sample of each masked copy for sensitive data. If it finds any, nothing is delivered.
- You can show an auditor what happened
- The audit trail records who approved the masking policy, what was masked and when every run happened.
- Nobody on your team has to maintain it
- There is no script to fix when the schema changes or when the person who wrote it moves on. base2Services runs and supports Washery.
- Your pipeline can start a run and read the result
- With a workspace API key, your pipeline can list your databases and masked copies, start a run and follow it to the end. A fresh masked copy can be a step in your release.
We started with a script too, then found a better way
Restore a snapshot, run some UPDATE statements and hand the result to your developers. That is how base2Services started in 2020. It worked, but every new column and every new database took up someone's time. We built Washery to do the job better and to take far less of your team's time.
Where a script takes up your team's time
- Someone has to find every column that holds sensitive data, and look again each time the schema changes.
- Masked values have to keep their format, or your application rejects them and your tests fail.
- Keys and unique columns have to line up across every table after masking.
- The copy has to reach your dev and test accounts, and everything used to make it has to be removed.
- Someone has to be able to show what was masked and who approved it.
How Washery compares with a script, AWS Glue and AWS DMS
| What it does | Washery | A script | AWS Glue | AWS DMS |
|---|---|---|---|---|
| Uses snapshots only | Yes | If you write it that way | No. The job reads a running database | No. The task reads a running database |
| Your live database keeps its full performance | Yes | If it works from a snapshot | Only if you build a copy for it to read | Only if you build a copy for it to read |
| Writes the masking policy for you to approve | Yes | No. You find the columns and write the SQL | No. It detects common kinds of sensitive data, and you set the masking in each job | No. You write a rule for every column |
| Masked data still looks real | Yes. Made-up names, and numbers that keep their format and pass their checks | As real as the SQL you write | No. A value is redacted or becomes a 64-character hash | Digits only. Names and email addresses can only be hashed |
| Keys and unique columns keep working | Yes | If you handle each one | Only where the value is hashed | Only where the value is hashed |
| Delivers a complete database | Yes. A snapshot, a database or backup files in your dev and test accounts | Yes, once you write the delivery | No. It writes rows into tables you create first | No. It creates tables and primary keys, and leaves indexes, foreign keys and views to you |
| Checks the masked copy before delivery | Yes. The run stops if it finds sensitive data | Only if you write the check | No | No. Masked columns are left out of its validation |
| An API to start runs and read their results | Yes. List databases and masked copies, start a run and follow it | Only if you build one | The AWS API, for the jobs you built | The AWS API, for the tasks you built |
| What you set up | One CloudFormation stack in each AWS account | The script, its permissions, its schedule and its clean-up | Network peering, connections, crawlers and a job for each table | A replication instance, two endpoints and a task with its rules |
When building it yourself is the better choice
- You have one small database that rarely changes, and an engineer with time to look after the script.
- Your database is not on Amazon RDS or Aurora.
- The masked data is going to a data lake or a warehouse, not to a database for development and testing.
- You need every change replicated as it happens, which AWS DMS does and Washery does not.
The AWS Glue and AWS DMS columns were checked against the AWS documentation on 1 December 2026: Copy and mask PII between Amazon RDS databases with AWS Glue, AWS Glue sensitive data detection, AWS DMS data masking, What AWS DMS creates on the target.