Detect and redact personally identifiable information using Amazon Bedrock Data Automation and Guardrails
AWS•How-to••by Himanshu Dixit, David Zhang, Richard Session and Viyoma Sachdeva•AWS Artificial Intelligence Blog
This post shows an automated PII detection and redaction solution using Amazon Bedrock Data Automation and Amazon Bedrock Guardrails through a use case of processing text and image content in high volumes of incoming emails and attachments. The solution features a complete email processing workflow with a React-based user interface for authorized personnel to more securely manage and review redacted email communications and attachments. We walk through the step-by-step solution implementation…
Bedrock Data Automation extracts text from attachments and Bedrock Guardrails anonymizes PII in email bodies and that text, deployed via CDK with a sample repo.
Who it is for
Teams on AWS handling customer emails and attachments that must redact SSNs, license numbers and phone numbers before storage or review.
Key points
Requires an existing VPC with three private subnets without internet access, Python 3.7+ (3.12 for Lambda), Node 18+ and AWS CDK 2.166+.
Bedrock Data Automation accepts PDF, JPEG and PNG, up to 200 MB in the console (500 MB via API) and 20 pages unless document splitting is enabled.
Amazon SES email receiving and the React portal are optional.
AI:Both offer document PII detection with redacted output; Azure uses a managed service while the item builds a pipeline from Bedrock Data Automation and Guardrails.
Related posts
AWS•Customer story••by Wrick Talukdar, Anatol Zakrividoroga, Erez Weinstein and Nir Shtein•AWS Artificial Intelligence Blog
AI:Guardoc Health's pipeline uses Amazon Nova models on Bedrock with Textract for RAG-based condition classification, PDF checkbox and handwriting reading, and medication extraction in long-term care documents.
AI:Taxbit describes how it built an embedded, cited, role-aware AI assistant on Bedrock AgentCore, grounded in a curated knowledge base with guardrails and continuous production evaluation.
AI:Claude Code can run as a remote agent on AgentCore runtime, with each coding task in its own isolated session that returns a GitHub pull request for human review.