Загрузка...

Configure AWS EC2 Apache Web-Server

🚀 Deployed an Apache Web Server on AWS EC2 Using Terraform! 🌐🛠️

Today, I automated the provisioning of an **Amazon EC2 instance running Apache HTTP Server using Terraform — infrastructure as code done right ✅

💡Highlights of the solution:

🔸 Used a modular Terraform setup to spin up a `t3.micro` EC2 instance
🔸 Pulled the latest Amazon Linux 2023 AMI dynamically
🔸 Bootstrapped Apache installation via a user data script
🔸 Enabled **HTTP access** through a tightly scoped security group
🔸 Stored Terraform state securely in S3 with DynamoDB for locking
🔸 Most importantly: Applied `default_tags` for visibility, consistency, and cost tracking!** 💵

hcl

provider "aws" {
default_tags {
tags = {
Environment = "Test"
Name = "Apache-Web-server"
}
}
}

These tags ensure every AWS resource I create is **auto-tagged** for tracking environments and asset naming—critical for clean billing, monitoring, and compliance.

📂 **File Structure:**

.
├── backend.tf # S3 & DynamoDB remote backend
├── terraform.tf # Provider config
├── main.tf # EC2 + Security Group + AMI data
├── output.tf # Outputs public IP
└── scripts/
└── userdata.sh # Bootstraps Apache install
📡 The result? A fully functional web server, available instantly via the EC2 public IP.

🔐 Bonus: All infrastructure changes are tracked, versioned, and repeatable!

---

🎯 **Tech Used:**
`Terraform` • `AWS EC2` • `Amazon Linux 2023` • `S3` • `DynamoDB` • `Apache2` • `Security Groups`

💼 Powered by: Paschal Onor
\#Terraform #AWS #DevOps #ApacheServer #IaC #CloudComputing #SimilimodoCloudTech #Automation #EngineeringExcellence #CloudNative

Видео Configure AWS EC2 Apache Web-Server канала Similimodo
Яндекс.Метрика

На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.

Об использовании CookiesПринять