# Enum ECS

## Comandos útiles

Listado de todos los clusters disponibles:

```
aws ecs list-clusters
```

<figure><img src="https://3716593425-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FghTUs02Gr2jdaFqpzAHM%2Fuploads%2Fgit-blob-77c03a4f4f5a69a90b23f0501a09f95088d898e0%2Fimage%20(60).png?alt=media" alt=""><figcaption></figcaption></figure>

Describir información detallada sobre un clouster existente

{% code overflow="wrap" %}

```
aws ecs describe-clusters --cluster <Clouster_name>
```

{% endcode %}

<figure><img src="https://3716593425-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FghTUs02Gr2jdaFqpzAHM%2Fuploads%2Fgit-blob-c3a85fe32fc4dff78727033b54a26f65379937f8%2Fimage%20(79).png?alt=media" alt=""><figcaption></figcaption></figure>

Listar todos los servicios de un clouster

{% code overflow="wrap" %}

```
aws ecs list-services --cluster <Clouster_name>
```

{% endcode %}

<figure><img src="https://3716593425-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FghTUs02Gr2jdaFqpzAHM%2Fuploads%2Fgit-blob-1f5128e90ff4a61ddf9f71ff2255bd814f471c64%2Fimage%20(69).png?alt=media" alt=""><figcaption></figcaption></figure>

Describir una instancia con la información del serivicio

```
aws ecs describe-services --cluster <Clouster_name> --services <Service_name>
```

<figure><img src="https://3716593425-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FghTUs02Gr2jdaFqpzAHM%2Fuploads%2Fgit-blob-af2c9d250e50527c9375bea68e0e2e521d46fe15%2Fimage%20(75).png?alt=media" alt=""><figcaption></figcaption></figure>

Listado de toda la información relacionada a las listas de tares en un cluster:

```
aws ecs list-tasks --cluster <Cluster_name>
```

<figure><img src="https://3716593425-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FghTUs02Gr2jdaFqpzAHM%2Fuploads%2Fgit-blob-f34e16cd0aff902bac897fa85c5ef13a911d9a75%2Fimage%20(74).png?alt=media" alt=""><figcaption></figcaption></figure>

Información detallada de una tarea y un cluster específico:

```
aws ecs describe-tasks --cluster <Cluster_name> --tasks <Task_id>
```

<figure><img src="https://3716593425-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FghTUs02Gr2jdaFqpzAHM%2Fuploads%2Fgit-blob-bd589348189499ef3aa81d09c35395f51838add3%2Fimage%20(3)%20(1)%20(3).png?alt=media" alt=""><figcaption></figcaption></figure>

### Contenedores

Listado de todos los contenedores de un cluster:

```
aws ecs list-container-instances --cluster <Cluster_name>
```

<figure><img src="https://3716593425-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FghTUs02Gr2jdaFqpzAHM%2Fuploads%2Fgit-blob-c15e0a8023d6ed879519b72b8b0e26ca7075f182%2Fimage%20(1)%20(3)%20(2)%20(1)%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>
