How do I connect a public-facing load balancer to EC2 instances that have private IP addresses?

  Рет қаралды 66,837

Amazon Web Services

Amazon Web Services

Күн бұрын

Пікірлер: 36
@avadhanam77
@avadhanam77 5 жыл бұрын
It would have helped if there was a visual that shows the architecture diagram at the end.
@sysadmin-e678
@sysadmin-e678 4 жыл бұрын
Why was a Classic LB used? Can this be done with an Application or Network LB? I understand that the steps may be different, but is the end result possible with the other two ELB types?
@parthbhoir3730
@parthbhoir3730 2 жыл бұрын
Yes, it can be done
@bezawadaashok7044
@bezawadaashok7044 2 жыл бұрын
Thank you so much.. It helped a lot for me.
@SteepVisions
@SteepVisions 3 жыл бұрын
It's sad that best practices on AWS are so damn expensive.
@uDubRiceBoy
@uDubRiceBoy 4 жыл бұрын
Why was the NAT Gateway need for this example? Was it only for patching and updating the EC2s? Thanks for the help in Advance!
@taiwobabalola4755
@taiwobabalola4755 4 жыл бұрын
NAT Gateway enables internet connection to your private subnets
@aditya-garg
@aditya-garg 3 жыл бұрын
@@taiwobabalola4755 1.I assume we can make it work without NAT GW as well right? 2.And AWS does not offer SNAT concept like Azure where LB Public IP can be used for private instances to access internet?
@lovelymikeb
@lovelymikeb 3 жыл бұрын
@@aditya-garg it shouldn't work without a NAT Gateway, no. Your private instances have no direct route to the internet (i.e your load balancer). The route table they use specifices that 0.0.0.0 (internet traffic) goes to the NAT gateway, and the ELB (behind the scene) knows that to route traffic to those instances, it has to be sent to the address of the NAT gateway. IMO this video should at least mention this concept, because this step IS happening, but you don't get to see it
@factaky
@factaky 4 ай бұрын
@@taiwobabalola4755 this demo is about connection to the private subnet through the LB. There is no need for a NAT gateway. Very sloppy video.
@deepakpaliwal5775
@deepakpaliwal5775 4 жыл бұрын
How do we connect to the EC2 server now since we do not have an public DNS , is it through ELB DNS ?? Can you please tell ?
@geetchoubey
@geetchoubey 3 жыл бұрын
Once the health checks have passed for the target groups, you can use the Load balancer DNS as the ELB is hosted on a public subnet, it is always accessible. In case of 502 error, check back with the target groups again.
@huucyber
@huucyber 5 жыл бұрын
You saved my life, thanks so much
@sysadmin-e678
@sysadmin-e678 4 жыл бұрын
Not directly related to this video, but if an (external) App or Network LB is created, is there an internal IP address or FQDN we can reference? The goal is to be able to use the same ELB for both external and internal users without the internal users having to go out to the external interface of the ELB.
@liausdhfsdgfgf
@liausdhfsdgfgf 4 жыл бұрын
Suppose in a given scenario an EC2 instance is linked with an Elastic IP address and is obviously exposed to the internet. If i create an ELB, do I need to get rid of the Elastic IP and link that EC2 instance with the ELB? Can ELB be employed in this scenario without removing the Elastic IP address?
@KRaghavendar
@KRaghavendar 4 жыл бұрын
I do not think NAT GW is required here, it was created because its a mandatory attribute to create the VPC thru Wizard. You can try deleting it and try reaching your servers via ELB DNS
@noobmaster69-s
@noobmaster69-s 4 жыл бұрын
First u need to understand what is ur requirment 1) you want ur servers to be private or public 2) do you want to load balance your traffic -> if u want ur servers to be public and you want a fix DNS use Elastic IP -> if u want Private servers and fix DNS and load balance -> use the Application Load balancer as ur using Elastic IP, i think ur scenario is that instance should be internet exposed
@BengaliStrings
@BengaliStrings 5 жыл бұрын
I was able to follow your instructions
@abdulwahabadi9787
@abdulwahabadi9787 5 жыл бұрын
You probably have them laughed in other VPCs in your account. How many VPCs do you have ??
@BengaliStrings
@BengaliStrings 5 жыл бұрын
@@abdulwahabadi9787 Are you trying to help or be sarcastic my friend, if you can help it would be very nice
@BengaliStrings
@BengaliStrings 5 жыл бұрын
@@abdulwahabadi9787 can i mail you my problem statement
@abdulwahabadi9787
@abdulwahabadi9787 5 жыл бұрын
@@BengaliStrings sure abdulwahabadi@gmail.com
@gustavoalvarezgomez
@gustavoalvarezgomez 4 жыл бұрын
What's happen when we use two EC2 instances each one in different AZ. Does the ELB works in this setup?
@noobmaster69-s
@noobmaster69-s 4 жыл бұрын
First Thing in your scenario i can see -> that ur ec2 are in diff AZ's and u want to load balance so first thing u need to check is -> which az's ur Ec2 are if ur ec2 is in 2 az, like A and B zone u need to configure ur ELB where u also need to put ur load balancer on the Same AZ in which ur ec2 presents That would work
@sijoriasijoria
@sijoriasijoria 3 жыл бұрын
You can add multiple AZs to your load balancers.
@rishiyyogi9824
@rishiyyogi9824 4 жыл бұрын
If you want to see architectural diagram pause the video at 0:59 and if wondering why NAT "NAT Gateway enables internet connection to your private subnet", try this without the wizard.. that's where learning starts , still is there is a architectural diagram from the begining and step by step establishment tracking would be more helpfull. thank you i still cant understand why we choose default SG for EC2 instance and later why we are connecting it to ALB why dont we choose ALB connected SG from the first it self .. any one please help...
@factaky
@factaky 4 ай бұрын
Given that this is a demo of load balancing to a private ip address, she should have disabled the NAT. Very sloppy video.
@rakeshpandey473
@rakeshpandey473 3 жыл бұрын
I have followed the exact same process, however, the status of the instance is showing out-of-service on Loadbalancer waited for 10 min still the same.
@damodaragottipalli5484
@damodaragottipalli5484 4 жыл бұрын
Excellent. Really It helped me. Can I create two more subnets in another zone? For pubic-subnet 10.0.2.0/24 and for the private 10.0.3.0/24 and launch the instances in the private subnet? will that work? I tried. But didn't.
@VonDutchyy
@VonDutchyy 4 жыл бұрын
You will need to add the 2 instances to the alb and make sure they both live in a new security group as they are in different regions, normally u add listeners for different rules.
@johnsamuels958
@johnsamuels958 3 жыл бұрын
Your voice is like sadie adler from rdr2😅
@regulardev
@regulardev 2 жыл бұрын
Disappointed to see the wizard being used. We fail to learn many important concepts.
@MohanNIroula1
@MohanNIroula1 4 жыл бұрын
Perfect!!
@damodaragottipalli5484
@damodaragottipalli5484 4 жыл бұрын
Did u try adding one more zone for high availabity and try?
@haipingwang7075
@haipingwang7075 9 ай бұрын
Worst presentation ever! things confused: 1) what is the role of NAT for this task 2) how the security group is described in rules 3) Route Table is not mentioned
@awssupport
@awssupport 9 ай бұрын
Apologies for any confusion caused! This re:Post article gives instructions on how to connect a public-facing load balancer to EC2 instances: go.aws/44KfIoP. Feel free to use these other resources if this wasn't quite it: go.aws/get-help. ^LG
AWS - RDS - Базы Данных SQL
43:13
ADV-IT
Рет қаралды 34 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
AWS Networking Basics For Programmers | Hands On
27:14
Travis Media
Рет қаралды 167 М.
Insane Theoretical Physics Discussion with ChatGPT and DeepSeek
4:59
Unzicker's Real Physics
Рет қаралды 13 М.
Auto Scaling and Load Balancing on AWS
22:53
Digital Cloud Training
Рет қаралды 7 М.
IPv6 from scratch - the very basics of IPv6 explained
14:34
OneMarcFifty
Рет қаралды 215 М.