Ec2 Launching an Instance.


Hi everyone.

Just got a quick question about AWS.

In any Region I can launch an instance and have a dummy hello world website with basic code get it to work. yum update -y yum install -y httpd systemctl start httpd systemctl enable httpd echo "<h1>Hello World from $(hostname -f)</h1>" > /var/www/html/index.html

It works in all regions except for Africa ( cape town - af south 1 ). When I create it, it just tries to load. So I assumed it's a security group issue.

I have checked security groups ( even with new security group ) and have allowed http in allowed inbound list and have tried to compare to other regions security group but only thing I can think of is that I have to manually change it to have a public IP ( other regions this is set to public ip as default ) and then it needs a subnet. No other regions need subnets.

What else can I check?



asked 2 years ago497 views
3 Answers

I would change the inbound and outbound rules. If that doesn't work, create a support ticket with AWS

answered a year ago

Hi, Niko.

The Instance starts fine without any errors. But it's when I put the public IP address in the web browser that I get no web page loading from it.

When I launch the same instance from another region with the same html code it launches fine. I can launch an instance from any region besides for south africa.

But will keep on trying to figure it out.

answered a year ago
  • I thought the instance doesn't lunch. OK then. Do you get no page after sometime(timeout) or right away? Did you try CloudWatch to see the error in apache? Alternatively you can check the apache log on the instance itself /var/log/apache2 OR /var/log/httpd . Also, I'd check var/log/ apache even running?


I would not assume its a security group. You can try using describe-instances CLI like so - to see if you can understand the error in more details. Let us know how it goes

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions