Does it make sense to have an Amazon Elastic Load Balancer with just one EC2 instance?

0 votes
my question is simple. Does it make sense to have an Amazon Elastic Load Balancer (ELB) with just one EC2 instance?

If I understood right, ELB will switch traffic between EC2 instances. However, I have just one EC2 instance. So, does it make sense?

On the other hand, I´m using Route 53 to route my domain requests domain.com, and www.domain.com to my ELB, and I don´t see how to redirect directly to my EC2 instance. So, do I need an ELB for routing purposes?
Mar 20, 2019 in AWS by code_ninja
• 6,230 points

retagged May 31, 2019 by code_ninja 74 views

1 answer to this question.

0 votes
  • Well you are right Elastic Load Balancer is mainly used to distribute the traffic equally among the instances and route traffic only to Healthy instances

  • If you are using single EC2 instance then using Elastic Load Balancer along with it is not a better decision

  • You will just end up making an unnecessary expenditure for using ELB

  • Instead in case of Single Instance you can make use of Elastic IP to point the domain name to an EC2 instance

The steps to do so are-

  1. Go to AWS management console and under compute select EC2 

  2. In EC2 console click on Elastic IP in left navigation panel 

  3. Acquire a New Address

  4. Associate it with your EC2 instance

  5. Copy the Elastic IP address and use it in your Route 53 sub-domain

Note: The Elastic IP address can be re-associated with a different EC2 instance later if desired within an AWS account. Every account can have upto 5 Elastic IP's only

answered Mar 20, 2019 by ArchanaNagur
• 2,320 points

Related Questions In AWS

0 votes
1 answer

How to launch an EC2 instance with IAM-Role?

The credentials you are using from your ...READ MORE

answered Sep 3, 2018 in AWS by Archana
• 4,150 points
650 views
0 votes
1 answer

How to safely upgrade an Amazon EC2 instance from t1.micro to large?

Using AWS Management Console: Right-Click on the instance Instance ...READ MORE

answered Oct 8, 2018 in AWS by Priyaj
• 57,530 points
90 views
0 votes
1 answer
0 votes
1 answer
+1 vote
2 answers
0 votes
1 answer

Does it make sense to have an Amazon Elastic Load Balancer with just one EC2 instance?

Well you are right Elastic Load Balancer is mainly ...READ MORE

answered Mar 20, 2019 in AWS by ArchanaNagur
• 2,320 points
73 views