The Real Story Behind Launch an instance EC2 Instance With Amazon Linux Apache Scripts In User Data

Опубликовано: 04 Сентябрь 2026
на канале: Technical Tantra
43
2

In this step-by-step AWS tutorial, learn how to launch an EC2 instance using Amazon Linux and automatically install Apache web server using User Data scripts. 🚀

This video is perfect for AWS beginners who want to automate server setup during instance creation. We’ll walk you through everything — from selecting the right AMI to pasting the User Data script and verifying Apache on your browser.

🧠 Steps Covered:

Log in to your AWS Management Console

Go to EC2 → Launch Instance

Choose Amazon Linux AMI

Create or select an existing Key Pair

Configure Security Group:

Allow SSH (port 22)

Allow HTTP (port 80)

Scroll to Advanced Details → User Data

Paste the below script 👇

#!/bin/bash
yum update -y
yum install httpd -y
systemctl start httpd
systemctl enable httpd
echo "h1Welcome to Apache on Amazon Linux - EC2 User Data Demo /h1"/var/www/html/index.html


Launch the instance and wait 5–10 minutes

Copy the Public IP and open it in your browser 🌐

You’ll now see your Apache web page running successfully! 🎉

💡 What You’ll Learn:

Launch EC2 instance

Use User Data for automation

Install Apache automatically

Verify and access your web page

❤️ If you found this video helpful:

✅ Like 👍
✅ Subscribe 🔔
✅ Share with your AWS & DevOps friends

#aws #amazon #ec2instance #apache #userdata #awstraining #awscertifications #awsaccountcreation #awstutorial #awsbeginner #amazonLinux #awsprojects #cloudcomputing #devops #serversetup #awsaccountcreation Tips #webserver #automation #learnaws #cloudskills