web-106rqyp is running a web server, inside the security group web-sg-106rqyp. Nobody can open the page.
- Find the server's public IP address, with the list from the last lesson.
- Try the page:
curl -m 5 http://<the IP>/. It waits, then gives up. - Find the security group's id. It starts with
sg-:
sh
aws ec2 describe-security-groups --group-names web-sg-106rqyp --query 'SecurityGroups[].[GroupId,GroupName]' --output table- Add a rule that lets anyone in on port 80, and only port 80.
- Try the page again.
Objectives
web-sg-106rqyplets anyone in on port 80, and nothing else.- The shop's page answers at the server's address.