EksFargateProfileStateSensor

Amazon

Check the state of an AWS Fargate profile until it reaches the target state or another terminal state.

View on GitHub

Last Updated: Jan. 26, 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_nameThe name of the Cluster which the AWS Fargate profile is attached to. (templated)
fargate_profile_nameRequiredThe name of the Fargate profile to watch. (templated)
target_stateTarget state of the Fargate profile. (templated)
regionWhich AWS region the connection should use. (templated) If this is None or empty then the default boto3 behaviour is used.
aws_conn_idThe Airflow connection used for AWS credentials. (templated) If this is None or empty then the default boto3 behaviour is used. If running Airflow in a distributed manner and aws_conn_id is None or empty, then the default boto3 configuration would be used (and must be maintained on each worker node).

Documentation

Check the state of an AWS Fargate profile until it reaches the target state or another terminal state.

See also

For more information on how to use this sensor, take a look at the guide: Wait on an AWS Fargate profile state

Was this page helpful?