Announcing Amazon Web Services Security Reference Architecture Code Examples for Generative AI

Authors: Ievgeniia Ieromenko, Justin Kontny, Liam Schneider |

Amazon Web Services (Amazon Web Services) is pleased to announce the release of new Security Reference Architecture (SRA) code examples for securing generative AI workloads. The examples include two comprehensive capabilities focusing on secure model inference and RAG implementations, covering a wide range of security best practices using Amazon Web Services generative AI services.

These new code examples are available in the Amazon Web Services SRA Examples Repository and include ready-to-deploy CloudFormation templates to assist application developers in getting started with network segmentation, identity management, encryption, prompt injection detection, and logging and monitoring. The solutions align with the Amazon Web Services SRA Design Guidance page and demonstrate our commitment to helping customers secure their generative AI implementations.

Customers can get started with these examples by following the implementation instructions for each solution in the Amazon Web Services SRA Examples Repository Solutions GenAI page. Additional documentation and implementation guidance is available in the Amazon Web Services SRA Design Guidance Generative AI Architecture Deep Dive.

Amazon Web Services strives to continuously provide security solutions that help customers meet their security architecture needs. Customers can reach out to the team by submitting an issue in the code repository.

If you have feedback about this post, submit comments in the Comments section below.

Ievgeniia Ieromenko

Ievgeniia Ieromenko

Ievgeniia a Security Engineer at Amazon Web Services, focusing on cloud security architecture and best practices. She is a key contributor to the Amazon Web Services Security Reference Architecture GitHub repository, helping customers implement secure cloud environments.

Liam Schneider

Liam Schneider

Liam is a Sr. Security Engineer with deep experience in cloud and application security, focused on reducing risk, improving system resilience, and aligning security with business needs. Liam has a strong background in compliance, team leadership, and building secure, scalable solutions across complex environments. He is known for practical, effective approaches to modern security challenges in both enterprise and cloud-first organizations.

Justin Kontny

Justin Kontny

Justin is a Sr. Security Engineer at Amazon Web Services who combines his passion for software development with expertise in cloud security. He focuses on transforming security from a barrier to a business enabler through innovative AI-driven automation. When not pushing the boundaries of cloud security, Justin enjoys time with his children and being active outdoors.


The mentioned AWS GenAI Services service names relating to generative AI are only available or previewed in the Global Regions. Amazon Web Services China promotes AWS GenAI Services relating to generative AI solely for China-to-global business purposes and/or advanced technology introduction.