OCI Highly Available Web Application

VCN • Load Balancer • Bastion Host • Private Servers • NGINX • Terraform


Highly Available Web Application Architecture

Overview

Designed and deployed a highly available web application in Oracle Cloud Infrastructure using a public load balancer, private application servers, and a bastion host for secure administrative access.

The application is deployed across two private NGINX servers behind an OCI Load Balancer configured for round-robin traffic distribution, providing redundancy and improved availability.

This page is being served by Server 2.

Services Used

OCI Virtual Cloud Network (VCN) – Provides network isolation and connectivity.
Public and Private Subnets – Separate internet-facing and internal resources.
OCI Bastion Host – Enables secure administrative access to private servers.
OCI Compute Instances – Host the NGINX web application servers.
OCI Load Balancer – Distributes traffic across multiple backend servers.
Security Lists and Route Tables – Control network traffic flow and access.

Infrastructure as Code with Terraform

I later recreated a simplified version of this architecture using Terraform, automating the deployment with reusable infrastructure modules.

The Terraform configuration is organized into network, compute, and load balancer modules. It provisions the VCN, public and private subnets, gateways, NSGs, two private NGINX compute instances, and a public OCI Load Balancer with backend health checks.

Skills Demonstrated

Cloud networking, subnet design, secure access through a bastion host, Linux server configuration, NGINX deployment, load balancing, and high availability architecture.

Terraform: modules, variables and outputs, resource dependencies, count, infrastructure lifecycle management, automated server configuration, OCI networking, and troubleshooting.