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...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help