Amazon Elastic Container Service (ECS) with a Load Balancer | AWS Tutorial with New ECS Experience

preview_player
Показать описание

In this video, we’ll make things more real-world, by running multiple containers and balancing traffic across them using an Application Load Balancer (ALB).

In a hands-on tutorial, we’ll create two security groups—one for the ALB and one for the ECS service. Then we’ll create an ECS cluster and task definition that pulls in an NGINX container from the Amazon Elastic Container Registry (ECR) Public Gallery. From there, we’ll create the ECS service, and while doing that, we’ll create the Application Load Balancer. But there’s a gotcha here! Make sure you stay to the end to find out how to get the load balancing working properly.

🌟🌟If you’re interested in getting AWS certifications, check out these full courses. They include lots of hands-on demos, quizzes and full practice exams. Use FRIENDS10 for a 10% discount!

00:00 – Overviewing what we’ll be building, and the need for a load balancer with ECS
01:38 – Understanding the security groups we need to get the load balancer working in ECS
02:43 – Creating two security groups in the AWS Console
04:43 – Creating an ECS Cluster
05:38 - Creating a new task definition for NGINX
07:12 - Deploying the ECS service
08:30 – Creating the load balancer to work with the ECS service (warning: There’s a gotcha here!)
10:08 – Testing our load balancer
10:34 – The load balancer doesn’t work!
10:58 – Fixing the security groups so that our load balancer works
12:00 – Now the load balancer works with our ECS containers!
12:22 – Summarizing what we’ve built
12:33 – IMPORTANT!! Deleting your ECS task, service, cluster, task definition, load balancer and security groups
Рекомендации по теме
Комментарии
Автор

The part about the two security groups save my life...

seanchen
Автор

Man this is a really good breakdown of what you plan to do before you do it. Very good teaching style. I also like the fact that you always do a clean up of resources at the end. Keep it up.

derrick
Автор

You rock!. The way you explain, I believe even anyone without any aws knowledge will understand easily how to setup things in aws. Your voice is so clear and interesting to follow. Please keep it up

sureshsurendran
Автор

Fantastic Video, coming from a Network Architect that's never used AWS before!

davidkeele
Автор

This is very good; a crystal clear explanation. I found it very useful to understand a training course I am doing.
In the course, we constructed a more complex setup. A load balancer connected to a node.js container which in turn talks to a mongodb database. The database, however, is linked to another AWS resource; EFS, elastic file system. This saves the database data so that if the mongodb container goes down or is stopped, which would cause data stored within to be lost, the data is still held in the EFS.

John-eqcd
Автор

Thanks, u saved my day I was stuck on it for 2 days and everytime the task failed but now following this tutorial it's is up and running

articvault
Автор

I love the way tutorials are structured with the concepts and some theory explained beyond the practice. Thanks!

zkiojij
Автор

the explanation about the security groups and how they work was essential to my understanding about some issues I was facing during a ECS service setup. You rock! Nice job!

lazarofl
Автор

I love your teaching style. Less word but whatever you explain is relevant to the topic. Neat & explanation with demo. Appreciate your effort.

zaferahmed
Автор

Very clearly demonstrated. I guess the only criticism you might make, and it's slight, is that running an ALB constantly sort of defeats the purpose of using Fargate.

artiefischel
Автор

omg you just made this so easy, I've been suffering with all of this for months now, THANK YOU!!!

lucassilvaennes
Автор

I watched multiple videos for how ECS work, After watch this ..ya i got clarity Now, how to do AND your way of demo appreciate....So good and clear explanation Thank you so much ...

RA-hofb
Автор

Awesome video; thanks for sharing. I've been fighting with my task to make it accessible since yesterday, and then I found this, straight to the point and fixed my issue!

icodeit.juntao
Автор

amazing teaching skill. And I have been being an engineer for like 10 years : )

hoangle
Автор

Nice explanation could you please make a viedo on this part how can we start the service on ecs container and also how can we increase the desired value on any particular service

priyatiwari
Автор

What an amazing tutorial mam. Made me a fan of you. Thanks a lot.

mrtalhaaa
Автор

Amazing amazing content with excellent explaination

avimehenwal
Автор

Thank you woman, you're amei-zing

cassiojp
Автор

Hi, just wanted to drop a comment to say thank you for this excellent tutorial. Your clear instructions saved my day at work! I really appreciate the effort you put into making these complex concepts so easy to understand. Keep up the great work!

rachmanareef
Автор

Fantastic video, this is exactly what I was looking for.

Thank you so much

sumonpoor