Ec2 Launching an Instance.

0

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?

Thanks

Lionel

Leo
已提问 1 年前442 查看次数
3 回答
1

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

AWS_Guy
已回答 1 年前
0

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.

Leo
已回答 1 年前
  • 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/messages...is apache even running?

0

I would not assume its a security group. You can try using describe-instances CLI like so - https://aws.amazon.com/premiumsupport/knowledge-center/ec2-launch-issue/ to see if you can understand the error in more details. Let us know how it goes

Niko
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则