Home icon

Large language model inference over confidential data using AWS Nitro Enclaves

Machine Learning Blog



The article discusses using AWS Nitro Enclaves to enable secure large language model (LLM) inference over confidential data like personally identifiable information (PII) and protected health information (PHI). It outlines the potential privacy risks of deploying LLMs and proposes an architecture leveraging Nitro Enclaves to mitigate these risks.

Specifically, the article covers:

  • Overview of LLMs and their use cases, as well as an introduction to AWS Nitro Enclaves and its security benefits
  • A solution overview detailing the steps involved in deploying an LLM inside a Nitro Enclave for secure inference over encrypted user data
  • Prerequisites and step-by-step instructions for configuring an EC2 instance, Nitro Enclaves, and updating the AWS KMS key policy
  • Building and running the enclave image with the LLM model, and an example of securely asking questions containing PII to the enclave-hosted LLM
  • Conclusion highlighting the benefits of this approach and potential future enhancements


Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Feb 26
2024
Techniques and approaches for monitoring large language models on AWS
Oct 27
2025
Building large language models for the public sector on AWS
Apr 15
2026
Accelerating decode-heavy LLM inference with speculative decoding on AWS Trainium and vLLM
Aug 14
2024
A qualitative approach to Evaluating Large Language Models for Responsible Gen AI on AWS

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.