Skip to main content
Version: Next


Table to manage AWS ECS services. You can use an Amazon ECS service to run and maintain a specified number of instances of a task definition simultaneously in an Amazon ECS cluster. If one of your tasks fails or stops, the Amazon ECS service scheduler launches another instance of your task definition to replace it. This helps maintain your desired number of tasks in the service.



Optional arn: string

AWS ARN for the service

assign_public_ip: assign_public_ip

Whether to assign a public IP to the service

Optional cluster: cluster

Reference to the cluster where the service belongs to

Optional desired_count: number

The desired number of instantiations of the task definition to keep running on the service.

name: string

Name of the container definition

region: string

Region for the ECS service

security_groups: security_group[]

Reference to all the security groups used by the service


Optional status: string

Current status of the service

subnets: string[]

Ids of all the VPC subnets used by the service


Optional target_group: target_group

Reference of the target group that will be associated with the service, to expose it via load balancers


Optional task: task_definition

Reference to the task definition that uses the service