Загрузка...

EC2 Website Not Accessible from the Internet? Check Security Groups First | AWS EC2 Interview Que.

B. Security Group Inbound Rules 🎯

Explanation:

A Security Group acts as a virtual firewall for an EC2 instance. If inbound rules do not allow web traffic, users cannot access the website.

For a web server, the Security Group should typically allow:

Port Protocol Purpose
80 TCP HTTP
443 TCP HTTPS
Why Not the Others?
❌ A. IAM Policy – Controls AWS API permissions, not website access.
❌ C. S3 Bucket Policy – Relevant only for S3 buckets, not EC2 web servers.
❌ D. CloudTrail Logs – Used for auditing AWS actions, not controlling network access.
Real-World Example:

EC2 Web Server:

Public IP assigned ✅
Apache/Nginx running ✅
Security Group allows SSH only ❌

Result:

SSH works
Website inaccessible

Fix:

Add inbound rule:
TCP 80 → 0.0.0.0/0
TCP 443 → 0.0.0.0/0

Website becomes accessible immediately.

#clouddev #aws #ec2 #devops #iam

Видео EC2 Website Not Accessible from the Internet? Check Security Groups First | AWS EC2 Interview Que. канала CloudDev
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять