Learn R Programming

paws.compute (version 0.7.0)

ecs_delete_service: Deletes a specified service within a cluster

Description

Deletes a specified service within a cluster. You can delete a service if you have no running tasks in it and the desired task count is zero. If the service is actively maintaining tasks, you can't delete it, and you must update the service to a desired task count of zero. For more information, see update_service.

See https://www.paws-r-sdk.com/docs/ecs_delete_service/ for full documentation.

Usage

ecs_delete_service(cluster = NULL, service, force = NULL)

Arguments

cluster

The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service to delete. If you do not specify a cluster, the default cluster is assumed.

service

[required] The name of the service to delete.

force

If true, allows you to delete a service even if it wasn't scaled down to zero tasks. It's only necessary to use this if the service uses the REPLICA scheduling strategy.