airflow.providers.amazon.aws.sensors.ec2_instance_state

Module Contents

class airflow.providers.amazon.aws.sensors.ec2_instance_state.EC2InstanceStateSensor(*, target_state: str, instance_id: str, aws_conn_id: str = 'aws_default', region_name: Optional[str] = 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.

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 = ['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]

Was this entry helpful?