EC2Hook

Amazon

Interact with Amazon Elastic Compute Cloud (EC2). Provide thick wrapper around boto3.client("ec2") or boto3.resource("ec2").

View on GitHub

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

api_typeIf set to client_type then hook use boto3.client("ec2") capabilities, If set to resource_type then hook use boto3.resource("ec2") capabilities.

Documentation

Interact with Amazon Elastic Compute Cloud (EC2). Provide thick wrapper around boto3.client("ec2") or boto3.resource("ec2").

Additional arguments (such as aws_conn_id) may be specified and are passed down to the underlying AwsBaseHook.

Was this page helpful?