From the course: Deploying Your AWS Application to the Cloud with Docker

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Container task definition for your container

Container task definition for your container - Amazon Web Services (AWS) Tutorial

From the course: Deploying Your AWS Application to the Cloud with Docker

Start my 1-month free trial

Container task definition for your container

- [Narrator] Just like we had a Dockerfile to create our container image, AWS needs a task definition to understand how to run your container. This is where we get to specify its CPU and memory requirements, and other settings. Let's go ahead and create our task definition. We'll go to the ECS console. We're going to make a stop at the repository where we're hosting out image currently. 'Cause we need to copy this value for the task definition, so I'll click copy over here, and now I'll click over to task definitions. I'll click create. Now we're presented with two choices, FARGATE, which is AWS-managed infrastructure, or EC2, which is self-managed. We're going to go with FARGATE in this case. I'll click next. Let's give it a name, webapp. We don't need a roll, 'cause we don't need permissions to any specific AWS services or resources. The Network Mode AEWSBPC is just fine for this. For memory, let's choose four…

Contents