EcsClusterStateSensor

Amazon

Polls the cluster state until it reaches a terminal state. Raises an AirflowException with the failure reason if a failed state is reached.

View on GitHub

Last Updated: Mar. 2, 2023

Access Instructions

Install the Amazon provider package into your Airflow environment.

Import the module into your DAG file and instantiate it with your desired params.

Parameters

cluster_nameRequiredThe name of your cluster.
target_stateSuccess state to watch for. (Default: “ACTIVE”)
failure_statesFail if any of these states are reached before the Success State. (Default: “FAILED” or “INACTIVE”)

Documentation

Polls the cluster state until it reaches a terminal state. Raises an AirflowException with the failure reason if a failed state is reached.

See also

For more information on how to use this operator, take a look at the guide: AWS ECS Cluster State Sensor

Was this page helpful?