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
demandé il y a un an441 vues
3 réponses
1

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

AWS_Guy
répondu il y a un an
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
répondu il y a un an
  • 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
répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions