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

Amazon Workspaces Vulnerability [Mitigated May 2020]

Summary Amazon Workspaces was incorrectly interpreting an AWS managed policy which resulted in allowing a read-only permission user to hijack a legitimate workspace. The attacker could force a password reset to the new account and compromise that particular Amazon Workspace, even though the credentials for the account only had read only access. AWS have mitigated the vulnerability, and this post is a quick summarization of the events leading to the patch....

June 24, 2020 · 4 min · Me