Lab Scenario:
Create Two EC2 Instances:
Choose free tier server.t2.micro:
Create security-key:
Edit Network Settings:
Create Security Group:
Rules will be configured later in the lab:
Launch Instance 1:
Note: Also create the instance-2 in the default VPC but in a different zone.
Verification:
Configure IIS Server in both EC2 Instances:
First Connect EC2 Instances:
Create an index.html File In Both Instances:
Configure NLB:
Choose the Private IP Address for the EC2 Instances.
Configure default VPC.
Create Listener.
Create a Target Group.
Switch back to the load balancer and configure the target group in NLM.
NLB Verification.
Use the DNS Name of the Load Balancer to connect.