Тёмный
No video :(

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

Amazon Web Services
Подписаться 764 тыс.
Просмотров 66 тыс.
50% 1

Опубликовано:

 

5 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 34   
@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.
@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...
@huucyber
@huucyber 4 года назад
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.
@TOBongExpress
@TOBongExpress 4 года назад
I was able to follow your instructions
@abdulwahabadi9787
@abdulwahabadi9787 4 года назад
You probably have them laughed in other VPCs in your account. How many VPCs do you have ??
@TOBongExpress
@TOBongExpress 4 года назад
@@abdulwahabadi9787 Are you trying to help or be sarcastic my friend, if you can help it would be very nice
@TOBongExpress
@TOBongExpress 4 года назад
@@abdulwahabadi9787 can i mail you my problem statement
@abdulwahabadi9787
@abdulwahabadi9787 4 года назад
@@TOBongExpress sure abdulwahabadi@gmail.com
@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.
@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
@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
@deepakpaliwal5775
@deepakpaliwal5775 3 года назад
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 ?
@geetchoubey1472
@geetchoubey1472 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.
@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 3 года назад
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.
@MohanNIroula1
@MohanNIroula1 4 года назад
Perfect!!
@damodaragottipalli5484
@damodaragottipalli5484 4 года назад
Did u try adding one more zone for high availabity and try?
@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 2 года назад
You can add multiple AZs to your load balancers.
@johnsamuels958
@johnsamuels958 3 года назад
Your voice is like sadie adler from rdr2😅
@regulardev
@regulardev Год назад
Disappointed to see the wizard being used. We fail to learn many important concepts.
@haipingwang7075
@haipingwang7075 3 месяца назад
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 3 месяца назад
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
Далее
НЕДОВОЛЬНА УСЛУГОЙ #shorts
00:27
Просмотров 18 тыс.
AWS Networking Basics For Programmers | Hands On
27:14
Просмотров 122 тыс.
AWS Networking Fundamentals
40:09
Просмотров 459 тыс.
subnetting is simple
13:33
Просмотров 2,5 млн