aws ecs create-service
Runs and maintains your desired number of tasks from a specified task definition. AWS CLI reference
28 options Its page in the AWS CLI reference
Options
Show its 28 options
--availability-zone-rebalancingIndicates whether to use Availability Zone rebalancing for the service.--capacity-provider-strategyThe capacity provider strategy to use for the service.--client-tokenAn identifier that you provide to ensure the idempotency of the request.--clusterThe short name or full Amazon Resource Name (ARN) of the cluster that you run your service on.--deployment-configurationOptional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.--deployment-controllerThe deployment controller to use for the service.--desired-countThe number of instantiations of the specified task definition to place and keep running in your service.--disable-execute-command, --enable-execute-commandDetermines whether the execute command functionality is turned on for the service.--enable-ecs-managed-tagsSpecifies whether to turn on Amazon ECS managed tags for the tasks within the service.--gateway-connectorsThe gateway connectors that attach the service to a gateway ingress path.--health-check-grace-period-secondsThe period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing, VPC Lattice, and container health checks after a task has first started.--launch-typeThe infrastructure that you run your service on.--load-balancersA load balancer object representing the load balancers to use with your service.--monitoringThe optional monitoring configuration for the service, which defines the resolution for the service-level CPUUtilization and MemoryUtilization Amazon CloudWatch metrics.--network-configurationThe network configuration for the service.--placement-constraintsAn array of placement constraint objects to use for tasks in your service.--placement-strategyThe placement strategy objects to use for tasks in your service.--platform-versionThe platform version that your tasks in the service are running on.--propagate-tagsSpecifies whether to propagate the tags from the task definition to the task.--roleThe name or full Amazon Resource Name (ARN) of the IAM role that allows Amazon ECS to make calls to your load balancer on your behalf.--scheduling-strategyThe scheduling strategy to use for the service.--service-connect-configurationThe configuration for this service to discover and connect to services, and be discovered by, and connected from, other services within a namespace.--service-nameThe name of your service.--service-registriesThe details of the service discovery registry to associate with this service.--tagsThe metadata that you apply to the service to help you categorize and organize them.--task-definitionThe family and revision (family:revision) or full ARN of the task definition to run in your service.--volume-configurationsThe configuration for a volume specified in the task definition as a volume that is configured at launch time.--vpc-lattice-configurationsThe VPC Lattice configuration for the service being created.