Skip to content

ambushhere/azure-cloud-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azure Cloud Lab: Secure Web App Deployment with Terraform

Infrastructure as Code project — Deployed a secure Ubuntu VM with Nginx in Azure using Terraform.

Gemini_Generated_Image_zzti9zzti9zzti9z

🎯 Overview

Automated deployment of a production-grade web server in Azure using Infrastructure-as-Code (IaC).
Includes:

  • Virtual Network (VNet)
  • Network Security Group (NSG) with restricted access
  • Ubuntu 22.04 VM with Nginx and HTTPS
  • Automated configuration via cloud-init
  • Self-signed SSL certificate

📈 Result / Impact

  • Automated end-to-end Azure web environment provisioning with Terraform, reducing manual setup effort.
  • Enforced safer network access with NSG restrictions (IP-scoped access model).
  • Standardized VM bootstrap using cloud-init for repeatable Nginx + HTTPS configuration.
  • Demonstrated production-style IaC workflow suitable for junior cloud/DevOps portfolio validation.

🛠️ Technologies

  • ✅ Terraform (IaC)
  • ✅ Azure CLI
  • ✅ Linux (Ubuntu 22.04)
  • ✅ Nginx + OpenSSL
  • ✅ Cloud-init

📸 Screenshots

Web Page web

Azure Portalazure_pip

💡 Note: HTTPS uses a self-signed certificate — browser shows warning. This is expected.

🔧 How to Run

  1. Clone this repo
  2. Create Azure Service Principal (with Contributor role)
  3. Fill in terraform.tfvars with your credentials:
    • your_ip must be in CIDR format (example: 203.0.113.10/32)
    • admin_ssh_public_key must contain your full SSH public key
  4. Run:
    terraform init
    terraform plan -var-file="terraform.tfvars"
    terraform apply -var-file="terraform.tfvars"

About

Infrastructure as Code project: Deployed Nginx VM in Azure using TerraformInfrastructure as Code project: Deployed Nginx VM in Azure using Terraform

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages