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
gefragt vor einem Jahr441 Aufrufe
3 Antworten
1

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

AWS_Guy
beantwortet vor einem Jahr
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
beantwortet vor einem Jahr
  • 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
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen