AWS Terraform Module - Custom Prompt Injection Detection
github.comΒ·17hΒ·
Discuss: DEV
Flag this post

Terraform Module: Prompt Injection Detection

Created by Wayne Workman

This Terraform module deploys an AWS Lambda function that uses Amazon Bedrock to detect prompt injection attempts in user input. The module implements the security principles outlined in this hands-on demo.

Overview

The module creates:

  • AWS Lambda function (Python 3.13) with prompt injection detection logic
  • S3 bucket for custom prompt storage with encryption at rest, versioning, and optional access logging
  • IAM role and policies for Lambda execution, Bedrock access, and S3 read/write permissions
  • CloudWatch log group for Lambda logs
  • All necessary infrastructure for secure …

Similar Posts

Loading similar posts...