I have created a good amount of these now but this time around for some reason it does not let me visit the address of the Instance which should have Apache Installed from the user data information inputted of #!/bin/bash yum update -y yum install httpd -y systemctl enable httpd systemctl start httpd
ec2-3-249-74-75.eu-west-1.compute.amazonaws.com is my DNS public IP
Have enabled Auto Assigned Public IP address
within Instance setup
I have a Security Group with port 80 and 22 open
in Inbound and All Traffic
for Outbound
I have a VPC with 3 subnets with DNS Hostname
enabled and on each subnet Auto-assign public IPv4 address
enabled
Even after all of this it displays Public IP address and DNS address but will not connect me, it just keeps loading when inputted.
If any more information should be required let me know and I will provide.
2
Answers
Based on the comments.
The issue was caused by using private subnets for the EC2 instance. For accessing the instance using public IP or DNS, it must be in public subnet.
When I launched Public IPv4 address / Public IPv4 DNS it took https by default, i set the protocal to http instead and it worked for me