From the course: Complete Guide to AWS Software Deployment

Unlock the full course today

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

Deploy a Docker app with an ECS task

Deploy a Docker app with an ECS task

- [Instructor] All right, now that we've got our task definition, we want to create a task with it. I'm going to do one thing first before we start that though. We need a security group that's going to open up our task on port 3000. So again, type EC2 here. We'll open it in a new tab, and we'll head over to Security Groups. Let's create a security group, and we'll call it RailsFromWorld. And that way we can reach this task, and we'll say, "opens up tcp 3000 to the world." Click Add rule. This time we'll say Custom TCP, 'cause it's not a preselected option. Type 3000 and choose Anywhere-IPv4. Scroll all the way down and click Create security group. And we'll use this in just a moment. Head back to the second tab here. Click on Clusters and head into the Art Gallery cluster. Go to the second tab, Tasks, and choose Run task. Now we're going to kick off our task definition. Scroll all the way down to Deployment configuration where Task is already selected. Choose the Family, which will be…

Contents