Skip to content

Ollama with Open WebUI on AWS

Ollama with Open WebUI on AWS is a pre-configured Amazon Machine Image (AMI) that provides a ready-to-run local LLM environment on AWS EC2. It combines Ollama for local model serving and Open WebUI for a browser-based chat interface, with the lightweight smollm2:135m model preloaded for immediate validation.

Disclaimer: All trademarks referenced in this listing belong to their respective owners. Their use does not imply any affiliation with or endorsement by the trademark holders.

  • Ollama local model server (listening privately on 127.0.0.1:11434)
  • Open WebUI browser interface (listening on port 8080)
  • Preloaded smollm2:135m model for quick validation (CPU inference by default; pull larger models after launch on larger instances)
  1. Find and subscribe to Ollama with Open WebUI with support by Elm Computing on the AWS Marketplace.
  2. Launch an EC2 instance (t3.medium or larger for basic validation; larger models require more CPU, memory, and disk capacity).
  3. In your security group, allow TCP port 8080 only from trusted IP addresses (or keep 8080 closed and use an SSH tunnel). Do not expose port 11434 publicly.

Once the instance is running, open:

http://<INSTANCE_PUBLIC_IP>:8080

On first access, create the initial Open WebUI administrator account and start chatting with the preloaded smollm2:135m model.

Section titled “Private access via SSH tunnel (recommended)”

If you do not want to expose port 8080 in your security group, forward it over SSH:

Terminal window
ssh -i KEY_PAIR.pem -L 8080:127.0.0.1:8080 ubuntu@<INSTANCE_PUBLIC_IP>

Then open http://127.0.0.1:8080 in your local browser.

To access the private Ollama API (127.0.0.1:11434) from your workstation, forward port 11434 over SSH:

Terminal window
ssh -i KEY_PAIR.pem -L 11434:127.0.0.1:11434 ubuntu@<INSTANCE_PUBLIC_IP>
curl http://127.0.0.1:11434/api/tags

From an SSH session on the instance, you can verify and pull additional models:

Terminal window
ollama list
ollama run smollm2:135m "Reply with OK only."
ollama pull llama3.2:1b

Questions or need help getting started? Contact support@elmcomputing.io.