Once the task definition has been registered, you can place the task in the cluster. You can create a service with the task definition and place one task in the cluster:
- Using AWS Management Console:
- On the Task Definition: packt-windows registration confirmation page, select Actions, Create Service.
- On the Create Service page, enter the following information and then choose Create service:
- Cluster: PacktWindowsCluster
- Number of tasks: 1
- Service name: PacktWindowsService
- Using the AWS CLI:
Run the following command to create your service:
aws ecs create-service --cluster PacktWindowsCluster --task-definition packt-windows --desired-count 1 --service-name PacktWindowsService