Launch an EC2 Web Server Instance
Answer
Scenario
A basic landing page needs to be delivered via an EC2 instance accessible over HTTP with its own security group.
Task
- Create a security group named
web-sgpermitting TCP port 80 from any IPv4 - Launch a
t2.microinstance tagged asweb-1using theweb-sgsecurity group - Automatically provision
/var/www/html/index.htmlcontaining "Hello from web-1" during startup using user data
📹 Video Solution