Module Contents

class*, instance_id: str, aws_conn_id: str = 'aws_default', region_name: Optional[str] = None, check_interval: float = 15, **kwargs)[source]

Bases: airflow.models.BaseOperator

Stop AWS EC2 instance using boto3.

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

  • aws_conn_id (str) -- aws connection to use

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

  • check_interval (float) -- time in seconds that the job should wait in between each instance state checks until operation is completed

template_fields = ['instance_id', 'region_name'][source]
ui_color = #eeaa11[source]
ui_fgcolor = #ffffff[source]
execute(self, context)[source]

Was this entry helpful?