EcsClusterStateSensor
AmazonPolls the cluster state until it reaches a terminal state. Raises an AirflowException with the failure reason if a failed state is reached.
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