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 年前檢視次數 441 次
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南