I have deployed a EC2 Micro Instance on AWS and installed Apache on it, overall rather basic I have to admit to my shame. Once started I am not able to get to the Apache Test Page via the public DNS of the EC2.
I have added (at least I think) the appropriate security group for the inbound traffic.
HTTP TCP 80 0.0.0.0/0
I have checked the httpd.conf file and checked if apache is listening on Port 80, which it is
[ec2-user@xxx httpd]$ sudo service httpd status
httpd (pid 12079) is running...
After trying to reach the webserver through the AWS Public DNS (IPv4), I just receive a TimeOut
2
Answers
Not my brightest moment.
While the security group was configured correctly, I accidentally applied the wrong one to the instance ... so effectively I did not forward the traffic to the port accordingly.
Sorry for wasting your time !
You most likely need to assign a public IPv4 address. You can follow these steps based on if you need a permanent or temporary one
Auto-Assigning Public IPv4 Address (Temporary IPv4 Address)
(instructions here). This normal type of public IP will be changed upon every EC2 stop or termination, so if you want a permanent public IP, you would need to make an Elastic IP.
Elastic IPv4 (Permanent IPv4 Address)
(instructions here). Do keep in mind that Elastic IP’s have requirements that need to be met in order to remain free (requirements here)
To get your public IPv4 for your EC2 instance afterward, you would: