Creating and managing EC2s using Python: Creating an EC2 instance and accessing it via SSH

Creating and managing EC2s using Python: Creating an EC2 instance and accessing it via SSH In my endeavours to see a valid, up to date tutorial on using and managing EC2s using Python3 and Boto3 I failed to find much out there. Understanding the EC2 creation paradigm In order to create an EC2 instance in boto3, you have to understand what are the key elements. The first key element to creating an ec2 instance in code is making sure the security group is configured, using this code snippet:...

February 1, 2023 · 4 min · Me

Creating and managing VPCs using Python: part 1 - VPC Creation

Infrastucture as Code using Python 3: part 1 creating and managing VPCs In my endeavours to see a valid, up to date tutorial on using and managing VPCs using Python3 and Boto3 I failed to find much out there. The key parts to a working VPC The key parts for a practical and working VPC is the following: Reasonable Internet Gateway Route Table Any peering connections Full example Here is a full example snippet of creating a VPC from scratch below:...

January 31, 2023 · 3 min · Me