<a id="cli-aws-emr-wait"></a>

# wait

## Description

Wait until a particular condition is satisfied. Each subcommand polls an API until the listed requirement is met.

## Available Commands

* [cluster-running](cluster-running.md)
* [cluster-terminated](cluster-terminated.md)
* [step-complete](step-complete.md)

## Examples

#### NOTE
To use the following examples, you must have the AWS CLI installed and configured. See the [Getting started guide](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html) in the *AWS CLI User Guide* for more information.

Unless otherwise stated, all examples have unix-like quotation rules. These examples will need to be adapted to your terminal’s quoting rules. See [Using quotation marks with strings](https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters-quoting-strings.html) in the *AWS CLI User Guide* .

**To wait until a cluster is running**

The following `wait` example waits until a cluster with the cluster ID `j-3SD91U2E1L2QX` is up and running.

```bash
aws emr wait cluster-running \
    --cluster-id j-3SD91U2E1L2QX
```

This command produces no output.

For more information, see [View Amazon EMR cluster status and details](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-manage-view-clusters.html) in the *Amazon EMR Management Guide*.
