ECS Service in AWS manages the long-running tasks of an application on Amazon Elastic Container Service. It ensures that the desired number of container instances are running and automatically replaces unhealthy tasks. ECS Service supports load balancing, service discovery, and scaling, making it easier to run containerized applications reliably and at scale.

aws.ecs_service

Fields

TitleIDTypeData TypeDescription
_keycorestring
account_idcorestring
availability_zone_rebalancingcorestringIndicates whether to use Availability Zone rebalancing for the service. For more information, see Balancing an Amazon ECS service across Availability Zones in the Amazon Elastic Container Service Developer Guide .
capacity_provider_strategycorejsonThe capacity provider strategy the service uses. When using the DescribeServices API, this field is omitted if the service was created using a launch type.
cluster_arncorestringThe Amazon Resource Name (ARN) of the cluster that hosts the service.
created_atcoretimestampThe Unix timestamp for the time when the service was created.
created_bycorestringThe principal that created the service.
deployment_configurationcorejsonOptional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.
deployment_controllercorejsonThe deployment controller type the service is using.
deploymentscorejsonThe current state of deployments for the service.
desired_countcoreint64The desired number of instantiations of the task definition to keep running on the service. This value is specified when the service is created with CreateService , and it can be modified with UpdateService.
enable_ecs_managed_tagscoreboolDetermines whether to use Amazon ECS managed tags for the tasks in the service. For more information, see Tagging Your Amazon ECS Resources in the Amazon Elastic Container Service Developer Guide.
enable_execute_commandcoreboolDetermines whether the execute command functionality is turned on for the service. If true, the execute command functionality is turned on for all containers in tasks as part of the service.
eventscorejsonThe event stream for your service. A maximum of 100 of the latest events are displayed.
health_check_grace_period_secondscoreint64The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing target health checks after a task has first started.
launch_typecorestringThe launch type the service is using. When using the DescribeServices API, this field is omitted if the service was created using a capacity provider strategy.
load_balancerscorejsonA list of Elastic Load Balancing load balancer objects. It contains the load balancer name, the container name, and the container port to access from the load balancer. The container name is as it appears in a container definition.
network_configurationcorejsonThe VPC subnet and security group configuration for tasks that receive their own elastic network interface by using the awsvpc networking mode.
pending_countcoreint64The number of tasks in the cluster that are in the PENDING state.
placement_constraintscorejsonThe placement constraints for the tasks in the service.
placement_strategycorejsonThe placement strategy that determines how tasks for the service are placed.
platform_familycorestringThe operating system that your tasks in the service run on. A platform family is specified only for tasks using the Fargate launch type. All tasks that run as part of this service must use the same platformFamily value as the service (for example, LINUX).
platform_versioncorestringThe platform version to run your service on. A platform version is only specified for tasks that are hosted on Fargate. If one isn't specified, the LATEST platform version is used. For more information, see Fargate Platform Versions in the Amazon Elastic Container Service Developer Guide.
propagate_tagscorestringDetermines whether to propagate the tags from the task definition or the service to the task. If no value is specified, the tags aren't propagated.
role_arncorestringThe ARN of the IAM role that's associated with the service. It allows the Amazon ECS container agent to register container instances with an Elastic Load Balancing load balancer.
running_countcoreint64The number of tasks in the cluster that are in the RUNNING state.
scheduling_strategycorestringThe scheduling strategy to use for the service. For more information, see Services. There are two service scheduler strategies available. REPLICA-The replica scheduling strategy places and maintains the desired number of tasks across your cluster. By default, the service scheduler spreads tasks across Availability Zones. You can use task placement strategies and constraints to customize task placement decisions. DAEMON-The daemon scheduling strategy deploys exactly one task on each active container instance. This task meets all of the task placement constraints that you specify in your cluster. The service scheduler also evaluates the task placement constraints for running tasks. It stop tasks that don't meet the placement constraints. Fargate tasks don't support the DAEMON scheduling strategy.
service_arncorestringThe ARN that identifies the service. For more information about the ARN format, see Amazon Resource Name (ARN) in the Amazon ECS Developer Guide.
service_namecorestringThe name of your service. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. Service names must be unique within a cluster. However, you can have similarly named services in multiple clusters within a Region or across multiple Regions.
service_registriescorejsonThe details for the service discovery registries to assign to this service. For more information, see Service Discovery.
statuscorestringThe status of the service. The valid values are ACTIVE, DRAINING, or INACTIVE.
tagscorehstore
task_definitioncorestringThe task definition to use for tasks in the service. This value is specified when the service is created with CreateService, and it can be modified with UpdateService.
task_setscorejsonInformation about a set of Amazon ECS tasks in either an CodeDeploy or an EXTERNAL deployment. An Amazon ECS task set includes details such as the desired number of tasks, how many tasks are running, and whether the task set serves production traffic.