Тёмный

AWS Elastic Load Balancer (ELB) Tutorial How-To 

Подписаться
Просмотров 39 тыс.
% 670

AWS Elastic Load Balancer (ELB) Tutorial How-To for Amazon Web Services EC2 instances. (see shortcuts below to key points) Adam Culp of Beachcasts php programming videos shares how to prevent DDoS attacks using AWS Elastic Load Balancer (ELB) as an Application Load Balancer, and include some Web ACL policies to protect from denial of service attacks.
Please * LIKE, COMMENT, AND SUBSCRIBE * - and share with others!
Key Topics:
- How to use AWS Route53
- How to use AWS Elastic Load Balancer (ELB) or AWS Application Load Balancer
- How to use AWS Certificate Manager
- How to use AWS WAF (Web Application Firewall)
- How to use AWS Web ACL
For a nice list of equipment I use in my studio, and to support the channel if you make any purchases (doesn't cost you a thing), visit my kit at kit.co: kit.co/beachcasts/beachcasts-studio
Errata:
Let me know if you notice anything that should be errata
Associated Links:
aws.amazon.com
aws.amazon.com/elasticloadbalancing/
letsencrypt.org/
Timeline:
00:00 Video Intro
01:03 Examine AWS Route53 DNS service
02:01 Creating a new Security Group
03:45 Examine imported TLS certificates in AWS Certificate Manager
05:32 Create an AWS Elastic Load Balancer (AWS ELB)
10:08 Add additional Target Group to be used by AWS Load Balancer
11:14 Specify a Target for use within a Target Group
11:45 Edit AWS Load Balancer Listener to use a new Target Group
12:36 Update Load Balancer Security Group to alias an open permission group
13:24 Update EC2 Instance Security Group to use Load Balancer Security Group
14:04 Update AWS Route53 DNS to be aliased to the Load Balancer DNS Name instead of directly to a server IP address
16:15 Navigate to AWS WAF & Shield
17:00 Create String and RegEx matching conditions
17:58 Define AWS WAF Rule to utilize matching conditions
18:40 Create an AWS Web ACL to use AWS WAF Rules
Other Beachcasts videos you might find interesting:
Laravel Model Factory Tutorial using Artisan make:model ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-hM135dPJ1dM.html
Authentication in Laravel Tutorial ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-2qJkzWJNpjQ.html
Top 5 skills to be a better software developer ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-kbX8iATLqxs.html
Install Laravel in Docker container on Ubuntu for beginners ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-0HTruhilvcU.html
Getters and Setters accessors in object oriented programming ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-cozignPaoLg.html
Critical programming issues preventing a PHP 7 upgrade ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-z13glyDnm6s.html
Behat for beginners functional REST API testing tutorial ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-nFNGDhyFrm4.html
Doctrine ORM one-to-many bi-directional association ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-4nEdBDxBc1w.html
PHP Mess Detector static analysis to find PHP code smells ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-8fEfHESrK5E.html
Doctrine ORM one-to-many self-referencing association ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-4dHZ6cZooOk.html
10 reasons to become a consultant in a consulting business ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-J7gpMYAKmDM.html
Zend Framework becomes Laminas project at Linux Foundation ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-CEIO90ocEDI.html
10 bad things about consulting ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ELE0G3e7h3c.html
How to get lines of code in PHP ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-HpC-Cvxj6oY.html
Make a List handler middleware ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-VLqavHCFv6g.html
Make a Delete handler middleware ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-3nLbQfMk99k.html
Make an Update handler middleware ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-3Zcq5Jjz1Po.html
Use UUID with Doctrine ORM for DB keys ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-SYuLwMwSIpg.html
Make a Create handler middlware ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-FIYh-VIWUko.html
Automate Hypermedia creation for PHP REST API ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-dX6S-pJVUXI.html
Learn about Hypermedia and how to create it ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-aV6ro_JXL_A.html
Doctrine ORM Paginator for PHP REST API ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-UpqOew4sNT0.html
Doctrine ORM Entity how to ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-NnK9Geg1h_E.html
Configure Doctrine ORM ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-pFvh5ZNhdOQ.html
Create PHP middlware with Zend Expressive ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-26440j7D0BE.html
Configure PhpStorm for PHP development with Docker ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-FQWL-JTZvf4.html
Create PHP development environment with docker ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-2ESAi2vq-80.html
Help through referrals:
Thinking of buying a Tesla electric vehicle? Use this referral link to also get six months of free Supercharging for both of us. Thank you. www.tesla.com/referral/tanya21367
I use TubeBuddy to help me manage my RU-vid channel. If you're interested, click the following link to check it out. www.tubebuddy.com/beachcasts
#awsloadbalancer #amazonwebservices #beachcasts

Наука

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

 

13 авг 2019

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 152   
@Beachcasts
@Beachcasts 5 лет назад
Check out more development related videos at: ru-vid.com/group/PL6_nF0awZMoNvi0QLmcv4qY5kfbnHrqg_
@Beachcasts
@Beachcasts 5 лет назад
Or to see how to create a REST API with Expressive, see: ru-vid.com/group/PL6_nF0awZMoMol4RPLf99WIZuoJ3l87oG
@dimef_
@dimef_ 4 года назад
You saved my sleep. I wasn't specifying the 443 target. I usually don't comment ever, but that god I clicked your video. Thank you!
@Beachcasts
@Beachcasts 4 года назад
Thank you for the comment. So happy it saved you some troubles.
@rathore354
@rathore354 3 года назад
again i am saying this only video i found which the production level environment required don't believe my word check any video no one explained like you ... Many thanks you save my reputation at perfect time
@Beachcasts
@Beachcasts 3 года назад
Thank you.
@Drivez1
@Drivez1 5 лет назад
Great work Adam.Nice sunny 🌞 video. Really liked the AWS topic
@Beachcasts
@Beachcasts 5 лет назад
Thanks Marius. The topic was hot on my mind as this past week I had to implement this to help a client overcome a DDoS attack. However, learning this was painful because the docs were a little lacking and didn't smoothly cover how each step was required and linked.
@Drivez1
@Drivez1 5 лет назад
Beachcasts Tech Videos that is true. There’s steps you need to do before enabling the service. Great explanation on the. Learned from this 👍
@orlandogunman509
@orlandogunman509 4 года назад
Just wanted y'all to know I used this tutorial to help with my set-up with several EC2 servers and their load balancer service over by Amazon. I used the SSL they provided though. This tutorial was helpful!
@Beachcasts
@Beachcasts 4 года назад
Glad I could help
@Tomsonx232
@Tomsonx232 4 года назад
THANK YOU!!!!!!! Not only did this solve my problem but it was incredibly easy to follow. Even though I came for one problem to get solved I HAD to subscribe
@Beachcasts
@Beachcasts 4 года назад
Thank you. I hope you find many other problems to solve with my videos.
@sam683or
@sam683or 4 года назад
it helped me a lot to setup SSL for our services, Awesome.
@Beachcasts
@Beachcasts 4 года назад
That's terrific! Did you do the entire load balancer setup as well?
@sillycoder9690
@sillycoder9690 Год назад
Man, your explanations are awesome. Great clip, thanks a lot!!!
@AlexkinSkywalker26
@AlexkinSkywalker26 4 года назад
You are the best buddy!!, you really helped me creating a Load Balancer for a web site I have and finally it's working. Thank you so much, you earned a new suscriptor. :) ...
@Beachcasts
@Beachcasts 4 года назад
Thank you. Happy it worked for you.
@rlee431
@rlee431 4 года назад
Thank you for this tutorial. It's one of the most thorough tutorials on the subject, at least that I have seen.
@Beachcasts
@Beachcasts 4 года назад
So happy it helped you. Thank you for letting me know.
@JesusArriagaBarron
@JesusArriagaBarron 4 года назад
that helped me a lot ... thank you for sharing it !
@Beachcasts
@Beachcasts 4 года назад
Awesome. Thank you.
@sabirahmed6191
@sabirahmed6191 3 года назад
Thanks a lot! For people having issues with 502 redirects try the following 1. Check if http only is working (incognito) 2. If http works but https gives a 502, just add the same forwarding of http to https in your Target groups. 3. Now after the above step both http and https will work. 4. If you want to redirect http to https then remove the forwarding from http and make it redirect to 443 port in Target groups.
@Beachcasts
@Beachcasts 3 года назад
Thank you for contributing.
@Yermid
@Yermid 4 года назад
Thanks so much for a very clear and focused and very professional video
@Beachcasts
@Beachcasts 4 года назад
Glad you liked it.
@antonionovak7639
@antonionovak7639 4 года назад
For anyone having ERR_TOO_MANY_REDIRECTS error. You need to have additional Security Group for instance with inbound rules to allow traffic only from Load Balancer group. And Load Balancer Group to which is Load Balancer assigned need to be open to anyone. Beside that; Great tutorial! It saved me lot of time. Thanks!
@Beachcasts
@Beachcasts 3 года назад
Thanks for sharing.
@truepinoy75
@truepinoy75 3 года назад
Thank you for the useful video. Keep it up!
@Beachcasts
@Beachcasts 3 года назад
Thanks, will do!
@jameshack5966
@jameshack5966 4 года назад
Thanks, brilliant. Massively helpful.
@Beachcasts
@Beachcasts 3 года назад
Glad it helped!
@cultclassic999
@cultclassic999 4 года назад
Great tutorial! Thanks!
@Beachcasts
@Beachcasts 4 года назад
Glad you found it helpful. Thank you.
@exalandconcept
@exalandconcept 4 года назад
Thanks for this tutorial :) i like it
@Beachcasts
@Beachcasts 4 года назад
Happy you found it useful. Thank you for watching.
@sabuein
@sabuein 3 года назад
Thank you very much.
@Beachcasts
@Beachcasts 3 года назад
You're welcome. Thanks for watching.
@CoolBishop1997
@CoolBishop1997 4 года назад
thank you for the video sir
@Beachcasts
@Beachcasts 4 года назад
Most welcome
@jpsaroud
@jpsaroud 3 года назад
Thank you very much!
@Beachcasts
@Beachcasts 3 года назад
You're welcome!
@Constantine769
@Constantine769 3 года назад
Thank you!
@Beachcasts
@Beachcasts 3 года назад
Very welcome.
@chrisjordanaliac8026
@chrisjordanaliac8026 4 года назад
Great and Informative video. I have a question: how do you tie in autoscaling with the load balancer? im a newbie at this
@Beachcasts
@Beachcasts 3 года назад
Great question. I'll hold onto this for future content. Thank you.
@kenlang1070
@kenlang1070 3 года назад
Very good video! One thought though is with the health checks on redirect codes. Did you try putting it into the "Success codes" field, in the "Advanced health check settings" group, in the step 4 "Configure Routing" when making a new load balancer?
@Beachcasts
@Beachcasts 3 года назад
Great idea. Yes, the expected results are important.
@jiahaotang1924
@jiahaotang1924 2 года назад
Thanks. But if you can test the load balancer at the end of this video by hitting the ec2 endpoint, that would be better!
@Beachcasts
@Beachcasts 2 года назад
Great point! Perhaps I will recreate this with more details. I've also learned more since creating this video.
@mvjrao123
@mvjrao123 2 года назад
Nice one. I have a quick question. If I have more than one EC2 server behind the ALB should I use a separate SSL certificate for each server? what should these certificates contain in Common Name and Subject Alter Names? thanks.
@Beachcasts
@Beachcasts 2 года назад
If I understand correct, the load balancer will have the publicly used cert. Servers don't really matter.
@ezequiel_lopez
@ezequiel_lopez 4 года назад
thanks a lot!
@Beachcasts
@Beachcasts 4 года назад
You're welcome! Thank you for watching.
@findprateek
@findprateek 3 года назад
Awsome, i want to know how the waf will be configured in front of elb, will it be pass through?, does the elb do ssl offload, do we need the ec2 server to also have a cert.
@Beachcasts
@Beachcasts 3 года назад
It's been awhile since I've looked at that (WAF and ELB), but I think I remember setting up the WAF then associating it with the resource in the Web ACL Rules. Hope that helps.
@Tux0xFF
@Tux0xFF 4 года назад
That t-shirt is awesome
@Beachcasts
@Beachcasts 4 года назад
Thanks for that. I need to add it to the merch merch.streamelements.com/beachcasts
@rameshkhadka5681
@rameshkhadka5681 4 года назад
Sweet. Thnx
@Beachcasts
@Beachcasts 4 года назад
You bet!
@spotlessthoughful
@spotlessthoughful 4 года назад
You can automate the process using lambda functions, look at the boto3 documentation for ACM, or even use the CLI commands and set up a cron job possibly.
@Beachcasts
@Beachcasts 4 года назад
Thanks Nate. I certainly will look at that. Much appreciated.
@TheSkipinder
@TheSkipinder 4 года назад
Thank a lot! This helped immensely.
@Beachcasts
@Beachcasts 4 года назад
Glad it helped!
@MrSSRao22
@MrSSRao22 4 года назад
Hi, Thank you for the tutorial. Was very helpgul. I am new to web hosting and trying to learn it. I setup my SSL and Load Balancer in the same as shown in the tutorial, I get a 502 Bad Gateway error. When I try without the load balancer it works fine without https. I saw in the comments that you had mentioned to look at server logs. By server logs do you mean I have to setup server access logs. Thanks in advance.
@rathore354
@rathore354 3 года назад
put / only
@Beachcasts
@Beachcasts 3 года назад
Server logs (like Apache) will show the responses, so you can see how your server is reacting to the health checks. Maybe it is sending 302 redirects, or something else. You can also customize the health check to look for a specific file "/index.html" for instance.
@er.ashishjetawat3201
@er.ashishjetawat3201 4 года назад
My site has custom port like 54301, how I can configure SSL with it. Target group showing bad health. Please help
@Beachcasts
@Beachcasts 4 года назад
I found it helpful to look at the server logs to see if AWS was hitting it.
@pkiekens
@pkiekens 4 года назад
Great video. Thx for sharing! One question though. At 12:38 , why did you copy the ID of the SgWebSvrBasicOpen security group to the inbound of the public loadbalancer. What is the connection here? What would be wrong with just leaving it open to listen on 80 en 443? After all, it's a public ELB.
@sbuckle1171
@sbuckle1171 3 года назад
At 3:45 he says that SgBeachcasts Lb will be used by target instances - not LB.
@sbuckle1171
@sbuckle1171 3 года назад
3:40, sorry
@Beachcasts
@Beachcasts 3 года назад
I hope you found the video helpful, and have succeeded in what you needed to do.
@hazzaldo
@hazzaldo 4 года назад
Great tutorial and explanation. One question. You mentioned at 14:50 that as well as port 443, port 80 is also redirecting to 443 with 301 redirect. I didn't understand this point. Where did you set port 80 to redirect to 443. Is it in the HTTP 80 listener that you set it to redirect to Target Group 443? I couldn't tell because I didn't see the rules fo listener HTTP 80. Also how would you fix the issue of 301 redirect in this case? Thanks
@Beachcasts
@Beachcasts 4 года назад
I did this in the Load Balancers area of EC2. I added/set the port 80 listener of a Load Balancer to redirect as the Default action. Hope that helps you.
@hazzaldo
@hazzaldo 4 года назад
​@@Beachcasts Thank you for your response. Apologies, but I didn't see that in the video. I saw you edit the rule for Listener HTTPS:443 where the action forward to Target Group 'beachcast443' at 11:50, but I didn't see you edit the rule on Listener HTTP:80 to redirect to Target Group 'beachcast443' as well. Was that meant to be the idea? Or am I missing something? Thanks
@Beachcasts
@Beachcasts 4 года назад
You're correct. I didn't do that in the video. I learned it afterward. Give it a try in AWS. In the port 80 listener, delete the current action, and add a new action that redirects port 80 to the 443 listener.
@yahhboyDrewskii
@yahhboyDrewskii 4 года назад
If you are allowing all traffic in the open sg then referencing it in the lb sg then the lb sg is allowing all traffic. Thus, defeating the point of the elb. right? Thanks for the video btw!
@Beachcasts
@Beachcasts 4 года назад
Thanks for the comment. Yes, the policy allows all traffic on given ports. (example: port 80 and 443) But also insulates the actual IP of the server from being known. Plus, allows additional rules and policies to be put in place prior to passing traffic to the server. (Example: only allow specific IP to hit port 22) This video was a very basic example to get it set up.
@yahhboyDrewskii
@yahhboyDrewskii 4 года назад
@@Beachcasts Ideally, we would want to make the EC2 only allow access via port 80 and 443 from the IP of the ALB. Also, I ran into an annoying issue of my target groups failing the health check without a reason code being shown. For anyone else watching and having this issue, I had to install IIS and bind port 80 and 443 to the site then set the default document for the site. I then referenced the index.htm in the health check path in the target group. I confirmed access to the default file by accessing it from another server on the same network to ensure it was accessible and the target group health check wouldn't get a 404 error. Thanks again for the video and i look forward to your next one!
@Beachcasts
@Beachcasts 4 года назад
Thanks Andrew. I think you misunderstood. In the video I show exactly that. Making it so only the traffic coming from the ELB makes it to the EC2 instance via internal IP. Also in the video, I show how I added '/index.php' to the targets so the health checks passed. Both valid points covered in the video.
@emax83
@emax83 4 года назад
Thank for your video, you did many trick that other tutorials skip. Thanks, but.. i still cannot use SSL, i followed any step but nothing to do.. I have EC2 Windows with IIS, configured loadbalancer, listners, sec group but still nothing HTTPS, the TargetGroup for 443 it's unhealthy.. i really don't know what to do with AWS.. many other provideres need only one click to enable ssl/https.. amazon aws need hours of configuration...
@Beachcasts
@Beachcasts 4 года назад
Try looking in the server logs of your EC2 instance. Often you can find the reason there. Often it is a bad route, or some small missing thing in the checks. Good luck.
@iliketocode6986
@iliketocode6986 3 года назад
so confused i followed along but we didnt create the beachcastOPENlb we just walked through how to do the secure one
@Beachcasts
@Beachcasts 3 года назад
Hope you figured this out.
@danc4268
@danc4268 3 года назад
Can this be done across instances in different regions? For example, I have a load balancer configured in Ohio region and it points to an instance in Ohio and also an instance in N. California. Is this possible to do?
@Beachcasts
@Beachcasts 3 года назад
ELB is able to balance across availability zones, but not regions, as far as I know.
@dannymason3970
@dannymason3970 4 года назад
Great video, but I am just trying to understand , if I follow this video up to 16:15, does this add ssl to my site i.e. make it accessible via and add the green padlock?
@dannymason3970
@dannymason3970 4 года назад
Well, as a beginner to AWS and its intricacies, I followed this guide and although it appears my website is SSL certified, when I try and access it using , I get 502 bad gateway error :(
@Beachcasts
@Beachcasts 4 года назад
No, this video does not cover how to fully set up the SSL. It only covers how to send http and https through the load balancer. I recommend you set up the SSL first, then add the certificates to the AWS Security Manager, to be used by the Elastic Load Balancer.
@sudhansharikatla8862
@sudhansharikatla8862 4 года назад
As I am new to aws, iam confusing about, we have only created listener 80 in routing, but in listeners section of loadbalancer , it is showing https: 443 also, here iam confusing, how it is showing https:443
@Beachcasts
@Beachcasts 4 года назад
Unfortunately, I'd need to know more of your setup. Typically, though I didn't show this in the video, I set up everything to https:443. Then I set up port 80 as a redirect to 443. Hope that helps.
@Dateconomics
@Dateconomics 2 года назад
i’ve got it working for one of my sites but can’t figure out how to do it again. My cert is issuers but i’m having it trouble applying it. Can’t figure out were i went wrong
@Beachcasts
@Beachcasts 2 года назад
Likely the security groups. I stumble on them every time. Good luck.
@Dateconomics
@Dateconomics 2 года назад
@@Beachcasts sounds about right. I still haven't fixed it. Do i set the security group to the cert manager certificate? Or the load balencer?
@info662
@info662 4 года назад
Thank you for the informative video. Is it possible to also redirect from www.domain.com to domain.com? I have a Fargate Setup, Loadbalancer, etc.
@info662
@info662 4 года назад
I found out how, thank you anyways :)
@Beachcasts
@Beachcasts 3 года назад
Thank you for the added question.
@Beachcasts
@Beachcasts 3 года назад
Glad you figured it out. Thank you.
@moonferoc7098
@moonferoc7098 4 года назад
I did, but it's not enabling port 443 for my instance. The link to my instance is still unsecured. Please help!
@Beachcasts
@Beachcasts 3 года назад
Hope you've figured this out since then. Thanks for watching.
@arunnandgadi4348
@arunnandgadi4348 2 года назад
I Have a query related to ALB, as my website is already having 3rd party SSL certificate and it's an HTTPS site, if I want to use and place ALB to handle traffic, should I generate a new certificate in AWS ACM and associate the same with ALB or can I use the same 3rd party certificate on ALB. Please clarify my confusion.
@Beachcasts
@Beachcasts 2 года назад
Yes, in Certificate Manager you can add 3rd Party certs, and then use them. But honestly, easier to use a cert generated by AWS instead, and let the renewals get handled. Otherwise, you will need to re-upload the cert for every renewal.
@arunnandgadi4348
@arunnandgadi4348 2 года назад
Hi, will be there any problem if both the certificates are running, say AWS certificate running on my ALB and 3rd part certificate running on the application server, will there be any conflict or complication of using both certificates.
@paulhanrahan6728
@paulhanrahan6728 4 года назад
Very helpful. Just have to fix the 503 error now.
@Beachcasts
@Beachcasts 4 года назад
Thanks for watching. Did you figure out the issue? I found that 503 happened most times from routing issues. I had to specify 'index.php' in my case for the app to resolve in quality tests.
@paulhanrahan6728
@paulhanrahan6728 4 года назад
@@Beachcasts I did. A simple error on my part.
@Beachcasts
@Beachcasts 4 года назад
@@paulhanrahan6728 Thanks for the update.
@DiegoRFGonz88
@DiegoRFGonz88 3 года назад
why not leave the LB & EC2 open if is still poiting to an open SG? is the same thing :S what's the point?
@Beachcasts
@Beachcasts 3 года назад
By implementing the ELB it gave me access to also use WAF to protect against common attacks. Not to mention removing the need for public IP on EC2 instances.
@sasogeek
@sasogeek 4 года назад
If I'm not using Route53, how do I point my dns to the load balancer correctly? (can't set it as an A record)
@hamiltonvera4151
@hamiltonvera4151 4 года назад
every load balancer creates an endpoint, you have to use CNAME in your DNS
@Beachcasts
@Beachcasts 4 года назад
There are other DNS providers that also allow ALIAS types, but I don't know of any. I see another commenter mentioned CNAME, but I'm not sure if that will work for zone roots.
@sasogeek
@sasogeek 4 года назад
Beachcasts Programming Videos The CNAME worked, turns out the reason the routing didn't appear to work was because I had set the lb and instance to have the same security group, but I had to give them different security groups and allow traffic to the instance only from the security group that the load balancer had since I didn't want to expose the instance itself to the world.
@Beachcasts
@Beachcasts 4 года назад
@@sasogeek Thanks for sharing!
@annaishmukhametova
@annaishmukhametova 4 года назад
instrad of A record use CNAME?
@comarkmaloba
@comarkmaloba 4 года назад
If you are using a debian OS in the EC2 instance, you can run a cronjob for LetsEncrypt to run every 3 months, needs some terminal intervention.
@Beachcasts
@Beachcasts 4 года назад
That is exactly what I need. Any resources you can point me to?
@fvdstone
@fvdstone 4 года назад
Why do you use a Let's Encrypt certificate? Aren't public certificates in ACM free? And why do you encrypt the traffic between the load balancer and your server instance? Woudn't it be enough to just let the load balancer terminate HTTPS and reach your backend server via http/80?
@Beachcasts
@Beachcasts 3 года назад
Thanks for sharing. Yes, you are correct, no need in most cases to encrypt traffic between the load balancer than server. I have a project where I use Let's Encrypt for other things, so wanted to carry it over to the load balancer. Othewise, not really needed.
@dashcamspotted887
@dashcamspotted887 4 года назад
Please make a tutorial of ALB and NLB so that I would get a static IP address. Because ELB is dynamic IP address.
@Beachcasts
@Beachcasts 3 года назад
Great ideas! Thank you.
@TheBanker1710
@TheBanker1710 4 года назад
Hi, thanks a lot for this very helpful video. After configuring my Load Balancer, I got a 504 error to reach my web application under IIS turning on port 1004. I create a target group on port 1004 and I made a rule to redirect my domain devtf.profilegroup.com (which is redirected by CNAME to my load balancer) to my specific target group 1004, why did I make wrong? Thanks for your help. :-)
@Beachcasts
@Beachcasts 4 года назад
The load balancer doesn't really care what web server you are using. It simply forwards the port based on the Target you set up in the load balancer. Make sure your security groups are configured correctly.
@TheBanker1710
@TheBanker1710 4 года назад
@@Beachcasts Thanks a lot for your answer. I finnaly found the issue, I had to open the ports on the server in the Windows firewall. :-)
@annaishmukhametova
@annaishmukhametova 4 года назад
@@Beachcasts can you explain why we in security group load balancer added another sg-..52e ID sg ?
@orrlevinger
@orrlevinger 3 года назад
im totaly confused with the Security groups allocations once you call it the load balancer SG and a second later you call it the instance security group.. you name it LBsecurity group but assign it to the load balancer.. every thing else is amazing but i lost you at the security grouping :(
@Beachcasts
@Beachcasts 2 года назад
Sorry about that. I was also struggling with it at the time. I should do a follow-up video to more thoroughly explain that portion. I've added it to my pending video list. ;-)
@zzSoloo
@zzSoloo 3 года назад
Just lol at fresh getting finessed
@Beachcasts
@Beachcasts 3 года назад
Glad you found it helpful.
@zabagar
@zabagar 3 года назад
Would prefer to see a load balancer setup to 2 endpoints not a single machine. There’s no load balancing if you only have 1 machine in the pool.
@Beachcasts
@Beachcasts 3 года назад
Fully agree. It was a missed opportunity to include that in the video. However, I hope folks watching go the next step.
@orlandogunman509
@orlandogunman509 4 года назад
I was expecting you to test the access and show that it was blocked e.g., to see if what you did worked.
@Beachcasts
@Beachcasts 4 года назад
Originally I did do that while recording, but removed it because the quality of the section was not as expected. Decided not to re-record. ;-)
@rmuchala
@rmuchala 4 года назад
I did everything in the video, but I cannot get to my site at the end of it. - I get 502 Bad gateway
@Beachcasts
@Beachcasts 4 года назад
Take a look at your website logs and see if the checks are hitting it. Might shed light on the fails.
@rmuchala
@rmuchala 4 года назад
no It is not even hitting it. I get bad gateway. 502.
@dannymason3970
@dannymason3970 4 года назад
@@rmuchala Did you resolve this issue? I have just followed the guide and have the same problem :/ There is nothing complex about my EC2 instance. It is a simple website created in Elastic Beanstalk and dns for the friendly domain managed in Route53.
@rlee431
@rlee431 4 года назад
@@rmuchala I would go through the checklist. Try another browser and/or clear your cache and try reloading. I hope this helps.
@LordLazaruss
@LordLazaruss 3 года назад
I got to the point of creating a certificate and then got stuck because i don't have my domain.
@Beachcasts
@Beachcasts 3 года назад
Yes, a domain is needed for the cert.
@rathore354
@rathore354 3 года назад
Dear Sir AWS load balancer i watched 100 time from different tutor but what deep things you explain no one had explained . request you at least come with one video per month for AWS
@Beachcasts
@Beachcasts 3 года назад
I like this idea. Thank you. Stay tuned.
@luckeyzlion
@luckeyzlion 4 года назад
It lucks demo. The tutorial would be completed if you show us what the end result is.
@Beachcasts
@Beachcasts 3 года назад
Thank you. I agree, this video could have been more complete. I'm thinking of creating a new one with what I've learned since then, as well.
@achraffahmi7083
@achraffahmi7083 4 года назад
😃😃😃
@Beachcasts
@Beachcasts 3 года назад
Thanks.
@markcuello5
@markcuello5 Год назад
HELP
@barronanderson7867
@barronanderson7867 4 года назад
I had a hard time following this instructional video. Perhaps providing a summary of the activities before starting would be helpful. I felt like we bounced around and I couldn't keep track of what we were trying to achieve. It's clear you know what you are doing and what you want to achieve. The challenge is translating that to people who are unfamiliar with the topic.
@Beachcasts
@Beachcasts 4 года назад
Thank you Barron. It was indeed a challenging topic I'd leaned mere hours before creating the video. Thanks for the feedback.
@prolife1416
@prolife1416 3 года назад
Too confusing
@Beachcasts
@Beachcasts 3 года назад
It can be. I've thought about creating a newer version of this, that is a little more simple. I've learned much more since creating this video.
Далее
Отец Проводит Тест с Сыном 😂
00:48