From the course: Getting Started with ECS

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Utilize a service

Utilize a service

- Before we navigate away and take a look at ECR. Let's just take a look at the disadvantage of a task. So if we look back in the ECS console in our test-cluster-1, so you can see we launched a task down here and the task, based on the task definition, it gave us one container. Now what happens if for some reason, we lose this task and we're just going to take a look right now and I'm just going to stop this. So what this is doing is stopping the container on the EC2 instance, and what we should get is no task are running. This isn't ideal, when you need to have your app running 24/7. This is where we'll use something called a service. And pretty much the setup is similar to a task. And we'll walk through it right now by clicking on this Create button. And, well, the Launch types is going to be EC2. Task Definition is going to be the task definition we created ghost-task-def, Revision 1, and it's going to be on our…

Contents