From the course: AWS DevOps: Continuous Docker Deployment to AWS Fargate from GitLab

Unlock the full course today

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

Creating a Fargate service with the CLI

Creating a Fargate service with the CLI

From the course: AWS DevOps: Continuous Docker Deployment to AWS Fargate from GitLab

Start my 1-month free trial

Creating a Fargate service with the CLI

- [Instructor] Now that we have a cluster, and we have a task definition, we need to combine these together to create a service. You can list the services you currently have defined by typing AWS space ECS list-services space - -cluster, space, and then the name of your cluster. Ours is fargate-cluster. And hit enter. OK, so we don't have any services. Now we can create a new service via the CLI and this is actually pretty straightforward if you already have the load balancers and the security groups set up. Since we need to do all this set up let's use the ECS console and then we'll come back to the CLI and you can see how to update an existing service, which is what you'll most commonly use when scripting deployment tools. Since our sample application is a web service make sure you have an Application Load Balancer that you can use before going to ECS. This'll make some of the plumbing of the ECS service easier to get through. Now I'm not going to cover all of this, but you can…

Contents