# Build a serverless PII redaction pipeline with Amazon Bedrock Data Automation

DevFeed: [Build a serverless PII redaction pipeline with Amazon Bedrock Data Automation](<https://devfeed.tech/articles/build-a-serverless-pii-redaction-pipeline-with-amazon-bedrock-data-automation-31519.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/machine-learning/build-a-serverless-pii-redaction-pipeline-with-amazon-bedrock-data-automation/>)

Author: Samantha Stuart

Published: 2026-09-16T15:17:37Z

Content type: tutorial

Language: en

Sources: [Artificial Intelligence](<https://devfeed.tech/sources/artificial-intelligence.md>)

Topics: [Amazon Bedrock](<https://devfeed.tech/topics/amazon-bedrock.md>), [pii](<https://devfeed.tech/topics/pii.md>), [Serverless](<https://devfeed.tech/topics/serverless.md>), [AWS Lambda](<https://devfeed.tech/topics/aws-lambda.md>), [AWS Step Functions](<https://devfeed.tech/topics/aws-step-functions.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [Amazon Web Services](<https://devfeed.tech/topics/aws.md>), [Ansible](<https://devfeed.tech/topics/ansible.md>)

Tags: [advanced-300](<https://devfeed.tech/tags/advanced-300.md>), [amazon-bedrock](<https://devfeed.tech/tags/amazon-bedrock.md>), [amazon-bedrock-data-automation](<https://devfeed.tech/tags/amazon-bedrock-data-automation.md>), [aws](<https://devfeed.tech/tags/aws.md>), [aws-lambda](<https://devfeed.tech/tags/aws-lambda.md>), [aws-step-functions](<https://devfeed.tech/tags/aws-step-functions.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [pii-redaction](<https://devfeed.tech/tags/pii-redaction.md>), [pipeline](<https://devfeed.tech/tags/pipeline.md>), [precision](<https://devfeed.tech/tags/precision.md>), [serverless](<https://devfeed.tech/tags/serverless.md>), [technical-how-to](<https://devfeed.tech/tags/technical-how-to.md>)

## AI overview

This tutorial presents a serverless AWS pipeline for detecting and redacting personally identifiable information in scanned documents and images. It uses Amazon Bedrock Data Automation with a custom blueprint, AWS Step Functions, and AWS Lambda, with a token-matching quality check to improve recall on degraded and handwritten documents.

## Source excerpt

Learn how to automate end-to-end PII detection and redaction from scanned documents at scale using Amazon Bedrock Data Automation with a custom blueprint, AWS Step Functions, and AWS Lambda. A custom blueprint redacts sensitive fields with field-level precision, and a token matching quality check raises recall across degraded and handwritten documents.