airflow.providers.amazon.aws.hooks.ec2
¶
Module Contents¶
-
class
airflow.providers.amazon.aws.hooks.ec2.
EC2Hook
(*args, **kwargs)[source]¶ Bases:
airflow.providers.amazon.aws.hooks.base_aws.AwsBaseHook
Interact with AWS EC2 Service.
Additional arguments (such as
aws_conn_id
) may be specified and are passed down to the underlying AwsBaseHook.See also
-
get_instance
(self, instance_id: str)[source]¶ Get EC2 instance by id and return it.
- Parameters
instance_id (str) -- id of the AWS EC2 instance
- Returns
Instance object
- Return type
ec2.Instance
-