EC2 NGINX Automation with Terraform and Ansible

Terraform init for EC2 deployment
Terraform plan for EC2 deployment
Terraform apply output creating EC2 resources
SSH connection to EC2 instance
NGINX Installed

Project information

  • Category: Infrastructure as Code / Configuration Management
  • Scenario: Repeatable EC2 web server provisioning and NGINX configuration
  • Project date: April 2026
  • Tools: AWS EC2, Terraform, Ansible, NGINX, SSH, Security Groups
  • GitHub: View Project

Repeatable Linux web server deployment using IaC and configuration automation

This project shows a practical deployment workflow for launching a Linux web server on AWS without relying on manual console steps.

I used Terraform to provision the EC2 instance, generate the SSH key pair, create the AWS key pair, configure security group access for SSH and HTTP, and output the public IP for validation.

I then used Ansible to update packages, install NGINX, start the service, and confirm the web server was reachable from the browser. The project demonstrates infrastructure as code, Linux administration, configuration management, network access troubleshooting, and deployment evidence.