From the course: Getting Started with ECS

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Design a task definition

Design a task definition

- Let's now take a look at creating a task definition. So back in the ECS console on the left-hand column. Click on the link for task definitions. And then the next page that appears, click on the Create new Task Definition. And then in the next page, you should see an option for FARGATE and EC2. We won't be doing FARGATE in this course. So we'll select this EC2 option and click on next step. And I'm going to give my Task Definition a name of ghost-task-def. So I named it ghost because we'll be using the ghost container image for the ghost blocks. And if you scroll down, you can keep the task role blank. It's an optional role. That we won't be specifying. And in the network mode, we can also keep it default. If you choose to, you can select other options such as bridge, host, ansvpc or none. If you select default, it will automatically default you to using bridge. And task memory. Task memory will just put in…

Contents