EC2InstanceStateSensor

Amazon

Check the state of the AWS EC2 instance until state of the instance become equal to the target state.

View on GitHub

Last Updated: Jan. 19, 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

target_stateRequiredtarget state of instance
instance_idRequiredid of the AWS EC2 instance
region_name(optional) aws region name associated with the client

Documentation

Check the state of the AWS EC2 instance until state of the instance become equal to the target state.

See also

For more information on how to use this sensor, take a look at the guide: Wait on an Amazon EC2 instance state

Was this page helpful?