Working with EC2 instances in Python using Boto3
Nov 3, 2022
This video covers the most common Amazon EC2 operations you might need to automate using Python and the Boto 3 library.
The entire free course content is available for you at: https://hands-on.cloud/quick-introduction-to-python-for-aws-automation-engineers/.
The supporting blog article is available at: https://hands-on.cloud/working-with-ec2-instances-using-boto3-in-python/.
Boto3 documentation for EC2 client: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ec2.html
Boto3 documentation for EC2 resources: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ec2.html#service-resource
00:00 - Intro
00:16 - Prerequisites
00:36 - What are Amazon EC2 Instances?
01:23 - How to connect to Amazon EC2 using Boto3?
02:31 - How to create the Amazon EC2 instance using Boto3?
04:44 - How to list all Amazon EC2 instances using Boto3?
05:36 - How to filter Amazon EC2 instances by the state?
06:13 - How to filter Amazon EC2 instances by type?
06:28 - How to filter Amazon EC2 instances by AWS tag?
06:49 - How to filter Amazon EC2 instances by the EC2 instance ID?
07:03 - How to describe Amazon EC2 instances?
07:40 - How to list all Amazon EC2 instance volumes?
08:07 - How to get the Amazon EC2 instance state?
08:24 - How to add AWS tags to the Amazon EC2 instance?
09:09 - How to list AWS tags of the Amazon EC2 instance?
09:53 - How to update the AWS tags of the Amazon EC2 instance?
10:08 - How to delete AWS tags of the Amazon EC2 instance?
10:41 - How to enable/disable Amazon EC2 instance detailed monitoring?
11:08 - How to start an Amazon EC2 instance using Boto3?
11:22 - How to stop an Amazon EC2 instance using Boto3?
11:50 - How to reboot an Amazon EC2 instance using Boto3?
12:02 - How to terminate (delete) an Amazon EC2 instance using Boto3?
12:18 - How to change an Amazon EC2 instance type using Boto3?
12:48 - How to create an SSH key for the Amazon EC2 instance using Boto3?
13:16 - How to list SSH keys in the Amazon EC2 service using Boto3?
13:36 - How to search/filter SSH keys by name using Boto3?
14:01 - How to search/filter SSH keys by the tag using Boto3?
14:21 - How to delete SSH keys using Boto3?
14:41 - How to create an Amazon EC2 Security Group using Boto3?
15:55 - How to list all Amazon EC2 Security Groups using Boto3?
16:06 - How to filter Amazon EC2 Security Groups by ID using Boto3?
16:22 - How to describe Amazon EC2 Security Groups using Boto3?
16:44 - How to delete Amazon EC2 Security Groups using Boto3?
16:53 - How to attach Amazon EC2 Security Groups to the EC2 instances using Boto3?
17:12 - How to list Amazon EC2 Security Groups of the EC2 instance using Boto3?
17:25 - How to detach the Amazon EC2 Security Group from the EC2 instance using Boto3?
17:45 - How to allocate an Elastic IP address using Boto3?
18:44 - How to filter and describe Elastic IP addresses using Boto3?
19:16 - How to detach the Elastic IP address from the EC2 instance using Boto3?
19:36 - How to release the Elastic IP address using Boto3?
Show More Show Less 