Start AWS EC2 instance using boto3.

View on GitHub

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


instance_idRequiredid of the AWS EC2 instance
aws_conn_idaws connection to use
region_name(optional) aws region name associated with the client
check_intervaltime in seconds that the job should wait in between each instance state checks until operation is completed


Start AWS EC2 instance using boto3.

See also

For more information on how to use this operator, take a look at the guide: Start an Amazon EC2 instance

Was this page helpful?