How to mask PII data using DMS without adding a column

1

I am replicating data from source db to target db within two different AWS accounts. I want to mask and replicate the column data to target db during ongoing replication in same column which contains PII data. I am using transformation rules for this but unable to do it. Because I don't want to add new column and delete the old one which contains PII data. Can anyone suggest me how to achieve this?

asked a year ago644 views
2 Answers
0

Hi,

this blog post describes a solution to your need: https://aws.amazon.com/blogs/database/data-masking-using-aws-dms/

Best,

Didier

profile pictureAWS
EXPERT
answered a year ago
profile picture
EXPERT
reviewed a year ago
  • Hi Didier, Thanks for answering my question but this blog post is not helping me to achieve my goal. Because it doesn't have any approach to mask the replicated column data in real time in same column. Do you have any other solution for this?

0

Hi Abhijeet,

I'm encountering a similar issue with AWS DMS (Database Migration Service). There are numerous articles about data masking using DMS, yet they all fail to mention that actual data transformation within columns is not feasible. The transformations are only applicable to column names, which raises the question of whether modifying or deleting columns truly constitutes data anonymization.

My specific challenge involves an email column. I intended to remove this column and add a new one with standardized email addresses like name.surname@example.com. I followed this guide: AWS DMS Customizing Tasks.

I attempted to set this add-column rule through the DMS console using the following JSON code: { "value": "FULL_NAME", "expression": "$FIRST_NAME||'_'||$LAST_NAME", "data-type": { "type": "string", "length": 50 } } However, I encountered an issue because the expression field rules cannot be executed via the console. I also tried defining the transformation rules in JSON, but errors occurred. Consequently, I am unsure if these rules are actually implementable through the console.

answered 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions