AI Cloud Architect

Detect and redact personally identifiable information using Amazon Bedrock Data Automation and Guardrails

AWSHow-to by Himanshu Dixit, David Zhang, Richard Session and Viyoma SachdevaAWS 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…

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

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.

The same at other vendors