how to connect my ec2 instance to a registered domain

0 votes

Hi I'm trying to make a test server to get Facebook authentication working.

am using python flask, current app itself is a copy of this oauth sample. nothing else.

so, I have set up everything I could think of:

  • an ACM to get https working,
  • a Load balancer(classic) - have set up cert from ACM i made above and the instance I want to connect to.
  • domain address registered in route 53, set up an alias target(the ELB)
  • etc.

and after setting this up I went into my ec2 instance using putty, set up an virtual env. and ran the app using the venv. aaaaand the app itself is working fine, except the ELB health check can't pick it up, nor when I try to access by typing in the domain address.

it only works when typing in EC2 instance's public IP. and now I'm stuck here, now knowing how to 'integrate' the instance to my registered domain...

the instance status in the load balance's instance tab shows OutOfService

^ EDIT: the instance tab works, it was due to PORT number. but domain still doesnt responds...

is there anything else I could check to do this? any help is greatly appreciated.... been stuck with this for over a month now :(

EDIT: currently the ELB gets health checks from ec2 instances properly. but I get infinite loading when I try to access by typing in domain name.

Sep 24, 2018 in AWS by bug_seeker
• 15,520 points
807 views

1 answer to this question.

0 votes

Hard to troubleshoot on here- but I would bet that you need to setup the security group so that the load balancer can hit the correct port on your EC2 instance (That is the most common cause of this)

answered Sep 24, 2018 by Priyaj
• 58,090 points

Related Questions In AWS

0 votes
1 answer
+1 vote
1 answer

How to take a backup of my EC2 instance?

Hi@akhtar, You can take a backup using snapshot ...READ MORE

answered Jun 7, 2020 in AWS by MD
• 95,440 points
629 views
0 votes
3 answers
0 votes
1 answer

How to set up a SPF(Sender Policy Framework) for AWS EC2 instance?

Setting up a SPF record is pretty ...READ MORE

answered Aug 16, 2018 in AWS by Archana
• 4,170 points
1,386 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
+2 votes
2 answers

How do we move a domain from Hostgator to AWS Route 53?

I found this  Before transferring a domain, make ...READ MORE

answered Aug 3, 2018 in AWS by Priyaj
• 58,090 points
5,294 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP