Running a private LLM in your own AWS account: the options
A private LLM on AWS runs inside your own account. Compare managed import, SageMaker endpoints and self-hosting for a fine-tuned model, with trade-offs.
Updated
Part of: Private AI in the Gulf
To run a private LLM on AWS, you put the model weights in your own AWS account and VPC, then call the model from your own services. There are three common paths: managed model import, a managed endpoint such as SageMaker, or running the serving stack yourself on EC2 or EKS. Managed import asks the least of your team, self-hosting gives the most control, and SageMaker sits between them.
What “private” means in your own AWS account
Private here means the prompts, the outputs and the weights stay in an account you control, under your own IAM policies, logs and network rules. Requests go to a resource you run, not to a shared API. That is a different setup from a vendor-run dedicated instance, where the vendor holds the account and the keys. It also differs from a public API that promises not to train on your data, because there you rely on a contract term instead of your own configuration. Private hosting does not make a system compliant by itself. Your security and legal teams still decide what your rules require.
The three deployment paths, and where SageMaker and Bedrock fit
| Path | Who runs the serving stack | Control | Fits best when |
|---|---|---|---|
| Managed model import (Bedrock) | AWS managed runtime | Low, limited to supported settings | Your model is in a supported format and you want an API fast |
| SageMaker endpoint | You pick the container and instance type, AWS runs it | Medium | You need a custom container or a model Bedrock does not support |
| Self-run on EC2 or EKS | Your team | High | You need control of batching, throughput and cost per request |
Bedrock is the managed route. You run fewer servers, but you get a shorter list of supported models and less say over the serving layer. SageMaker is the flexible route. You can package almost any model in a container, but your team owns the endpoint settings, scaling and version rollouts. Neither service is cheaper by default. Compare the current pricing pages for both at your expected volume, since rates change. For the general pattern behind all three, see running a model in your own cloud account.
Bedrock custom model import vs self-hosting
Managed import is the first thing to try when your model already fits its formats. The runtime runs the servers, so your team writes no serving code. Self-hosting is the better choice when the managed runtime limits a setting you need, such as how requests are batched or how the model loads into memory. It also makes sense when you already run your own inference servers and have people who can operate them. Start by checking which formats and model architectures the import feature accepts, because that list decides which path is open to you before anything else does.
Can I run a fine-tuned model in an AWS VPC?
Yes. Put the endpoint or the serving instances in private subnets with no route to the public internet, and let only your application’s security group reach them. Store the weights in a bucket that only the serving role can read, and encrypt them with a key your account controls. Log the requests you are allowed to keep, and keep those logs inside the account. Network details for each option are covered in keeping LLM traffic inside your VPC.
Before it takes traffic, score the current model and the fine-tuned model behind its private endpoint on a checked set kept inside the same account, and keep the old path in place until the new endpoint has held up on live requests. The full method is in how to build a test set.
When self-hosting on AWS is the wrong choice
Self-hosting is the wrong choice at low volume. A managed endpoint or a hosted API is simpler when a task runs a few times a day, because a self-run setup pays for capacity even when it sits idle. It is also the wrong choice if nobody on your team can operate a serving stack, or if one model has to handle many unrelated jobs. Hold off until you have a test set built from your own records. Without that test you cannot tell whether a trained model beats the one it replaces, and no hosting option changes that. If you are not sure yet, hosted open-model APIs let you test an open-weight model before you take on the operations work.
The fastest way to see which path fits your workload is the free AI cost audit, or a call with Own Weights. The audit lists the AI calls in your code, so you can see which task is the best candidate to move into your own account first.
Questions
How do I deploy an LLM in my AWS account?
Store the model weights in a bucket in your account, then serve them through one of the AWS paths: managed import, a SageMaker endpoint, or your own containers on EC2 or EKS. Choose the path first, because it decides how much of the serving stack your team has to run. Lock the endpoint down with IAM and private networking from the start.
Can I run a fine-tuned model in an AWS VPC?
Yes. Keep the serving instances in private subnets with no route to the internet, and let only your own services reach them. Store the weights where only the serving role can read them, and keep request logs inside the account.
Is Bedrock custom model import better than self-hosting?
It is better when your model fits the supported formats and you want an API without running servers. Self-hosting is better when you need control over batching, throughput or how the model loads. Confirm the current supported list before you commit to either.
Can I host an open-weight model on AWS?
Yes, on any of the three paths, as long as the license of the weights allows your use. Read the license terms for commercial use before you deploy. Then test the model against the one you use now, on your own data, before it takes production traffic.
SageMaker or Bedrock for a custom LLM: which one?
Bedrock suits teams that want the least operations work and whose model fits what it supports. SageMaker suits teams that need to pick the container and machine type themselves. Compare the current pricing pages for both at your expected volume.