airflow.providers.amazon.aws.sensors.ec2

Module Contents

Classes

EC2InstanceStateSensor

Check the state of the AWS EC2 instance until

class airflow.providers.amazon.aws.sensors.ec2.EC2InstanceStateSensor(*, target_state, instance_id, aws_conn_id='aws_default', region_name=None, **kwargs)[source]

Bases: airflow.sensors.base.BaseSensorOperator

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

Parameters
  • target_state (str) -- target state of instance

  • instance_id (str) -- id of the AWS EC2 instance

  • region_name (Optional[str]) -- (optional) aws region name associated with the client

template_fields :Sequence[str] = ['target_state', 'instance_id', 'region_name'][source]
ui_color = #cc8811[source]
ui_fgcolor = #ffffff[source]
valid_states = ['running', 'stopped', 'terminated'][source]
poke(self, context)[source]

Function that the sensors defined while deriving this class should override.

Was this entry helpful?