Managing EC2 and VPC_ AWS with Python and Boto3 Series

Learn how to implement EC2 and VPC resources on AWS using Python API - Boto3! Implement your infrastructure with code!

Instructed by Niyazi Erdogan

Want to access all courses?
Go for a premium subscription

  • Monthly
  • Yearly

Monthly

$ 29/mo
Billed Monthly
  • Access to all courses
    You will be able to access all the courses from any category on the platform.
  • Learning paths access
  • Access Assignments & Projects
  • Access on Mobile, PC and Tablet
  • Pause & Resume Courses Anytime
  • Offline viewing
  • Instructor Support
  • Course Completion Certificates
Subscribe Now

Yearly

$ 299/yr
Billed Annually
  • One year Unlimited Access
  • Access to all courses
    You will be able to access all the courses from any category on the platform.
  • Learning paths access
  • Access Assignments & Projects
  • Access on Mobile, PC and Tablet
  • Pause & Resume Courses Anytime
  • Offline viewing
  • Instructor Support
  • Course Completion Certificates
Subscribe Now
  • You'll be able to implement any sort of infrastructure on AWS with Python using VPCs, Subnets and EC2s!
  • You'll learn how to code against AWS API using Python and Boto3!
  • You'll learn how to launch EC2 Instances on AWS using Python and Boto3!
  • You'll learn how to isolate and control your own infrastructure with Python using Route Tables, Internet Gateways, Security Groups and Rules!
  • You'll have very good understanding of VPC concepts like Subnets, Route Tables and Internet Gateways by putting all into real-world practice with Python code!
  • You'll be confident to work with AWS APIs using Python for any kind of AWS Resource on VPC and EC2 Instances!
  • You'll learn how to read and code against an API documentation!

Do you want to learn how to implement VPC and EC2 resources with Python code on AWS? Do you want to launch EC2 Instances with Python code on AWS? Are you preparing for AWS Solutions Architect Associate Exam and want to put your theory and skills into practice with VPC and EC2? This is the course for you!
 
In this course, we’ll start by taking a look at the tools and the environment that we need to work with AWS resources. We’ll be using Python 3 and as per the IDE I recommend you to use PyCharm from Jetbrains. It has a free community edition even!
 
After Iteach you how you can set up your environment on both MacOS and Windows, we’ll create our credentials for AWS as being the AWS Access Key and AWS Secret Access Key for programmatic access to AWS resources. You’ll learn how you can set your AWS credentials globally on your computers using AWS CLI. Before jumping into the implementation, for one last tip, I’ll show you how you can have auto-complete capabilities on your PyCharm IDE with PyBoto3!
 
Once we’re ready with our environment setup, we’ll start implementing our solution on AWS! And remember we’ll do everything with Python code; not a single thing manually or by hand! We’ll start by creating a VPC. For our own VPC, we’ll provide CIDR IP Block to isolate our resources within that VPC.
 
Then we will create two subnets; Public and Private. Public Subnet will be where we will put our internet-facing resources like Public EC2 instances and we will definitely launch an EC2 instance in it! To achieve this, we will create an Internet Gateway or IGW and attach it to our VPC. But of course that is not enough. We will create a Route Table for public routes over the internet and also add our Internet Gateway to the Route Table to allow internet access to our Public EC2 Instance. We will also not forget to associate our Public Subnet with this Public Route table so it can be exclusively used by the Public Subnet and its subresources. And finally, we will modify our Public Subnet so it can automatically assign public IP addresses to the resources we will launch within this Public Subnet. That's the way we are going to achieve internet access to and from our Public EC2 Instance and again we will do all of that with our Python code!
 
Besides, we will create a Private Subnet for our internal resources like a Private EC2 Instance which will only be accessible through the Private or Public Subnet; not open to the world. To achieve this, we will associate our Default Route Table with our Private Subnet and then we will not add our Internet Gateway to this Route Table so it will basically not have any internet access. We will also not enable auto-assign public IP addresses on Private Subnet which is disabled by default. That's basically how we are going to disable internet traffic on our Private EC2 Instance again we will do all this with our Python code!
 
We will not stop there of course so before we launch our Public EC2 Instance, we will develop a startup bash script to automatically run when we launch our EC2 Instance. In this script, we will first update our packages with yum package manager so we can stay up-to-date with the latest updates and security patches. Then we will install a HTTP server on it and make sure it's working by a startup check command. After we prepare our HTTP server, we will develop a simple HTML page as as greeting and we will write this page to disk to be served when we try to access our Public EC2 Instance. And remember, we will again do all of this with our Python code!
 
After finishing up launching our EC2 Instances, we'll nove on to learn how to describe EC2 Instances on AWS in  detailed way; from their IP adresses to the subnet which they belong to. Then we'll learn how to learn how to manage EC2 Instances in various ways. We'll Stop, Start and Terminate EC2 Instances and again the best part is we will do all of that with our Python code!
 
Lots of information, hands-on practice and experience is waiting for you in this course on AWS. So, don't miss any more time and join me in this course to sharpen your skills on AWS using Python and Boto3!

  • Beginner level of Python
  • Any Python Interpreter. Default is fine but I recommend PyCharm
  • An AWS Account - Free Tier Available!
  • General Knowledge on AWS Model would be nice
  • Beginners on AWS who wants to put their theory in practice
  • Beginners on AWS who wants to put their theory in practice
  • AWS Cloud Architect Associate Exam Preppers who wants to practice their theories with real projects
  • Who wants to learn how to implement Infrastructure-as-a-Code or IaaS on AWS
  • Who wants to learn how to develop infrastructures on AWS using Python
  • Who wants to learn how to launch Virtual Private Clouds, Public-Private Subnets and more with Python code on AWS
  • Who wants to learn how to launch EC2 Instances publicly and privately using Python on AWS
View More...

Section 1 : Introduction

  • Lecture 1 :
  • Lecture 2 :
  • About This Course
  • Lecture 3 :
  • What We Will Build In This Course
  • Lecture 4 :
  • What Do You Need For This Course
  • Lecture 5 :
  • Source Code

Section 2 : Preparing The Environment for Development

  • Lecture 1 :
  • Section Overview
  • Lecture 2 :
  • About Tools and Environment
  • Lecture 3 :
  • Create an AWS Account If You Don_t Already Have It!
  • Lecture 4 :
  • Logging in to AWS Console and A Walkthrough
  • Lecture 5 :
  • Let_s Create Our AWS Credentials!

Section 3 : Windows ENvironment Setup

  • Lecture 1 :
  • Installing Python 3 and Pip
  • Lecture 2 :
  • Installing AWS SDK (CLI)
  • Lecture 3 :
  • Preparing CLI with AWS Credentials
  • Lecture 4 :
  • Installing Boto3
  • Lecture 5 :
  • Verifying The Setup

Section 4 : MacOS Environment Setup

  • Lecture 1 :
  • Installing Python 3 and Pip
  • Lecture 2 :
  • Installing AWS SDK (CLI)
  • Lecture 3 :
  • Preparing CLI with AWS Credentials
  • Lecture 4 :
  • Installing Boto3
  • Lecture 5 :
  • Verifying The Setup

Section 5 : Virtual Private Cloud (VPC) with Boto3- Part 1

  • Lecture 1 :
  • Section Overview
  • Lecture 2 :
  • Scenario: AWS Console Perspective of What We'll Build
  • Lecture 3 :
  • Setting Up Our Project with PyCharm IDE
  • Lecture 4 :
  • Let's Check Out Boto3 API Docs!
  • Lecture 5 :
  • [Tip] Auto-Complete Magic with Pyboto3 on PyCharm IDE!
  • Lecture 6 :
  • Creating a Virtual Private Cloud (VPC)
  • Lecture 7 :
  • Adding Name Tag To An AWS Resource (VPC)
  • Lecture 8 :
  • Create an Internet Gateway (IGW)
  • Lecture 9 :
  • Attaching the Internet Gateway to VPC
  • Lecture 10 :
  • Section Summary

Section 6 : Virtual Private Cloud (VPC) with Boto3- Part 2

  • Lecture 1 :
  • Section Overview
  • Lecture 2 :
  • Creating a Public Subnet
  • Lecture 3 :
  • Creating a Route Table for Public Routes
  • Lecture 4 :
  • Adding IGW Route to Route Table
  • Lecture 5 :
  • Associating Public Subnet with Public Route Table
  • Lecture 6 :
  • Allowing Auto-Assign Public IP Address on Subnet
  • Lecture 7 :
  • Creating a Private Subnet
  • Lecture 8 :
  • Section Summary

Section 7 : Elastic Compute Cloud (EC2) with Boto3 Part 1

  • Lecture 1 :
  • Section Overview
  • Lecture 2 :
  • Scenario: AWS Console Perspective of What We'll Build
  • Lecture 3 :
  • Creating a Key Pair
  • Lecture 4 :
  • Creating a Security Group
  • Lecture 5 :
  • Adding a Rule to Security Group
  • Lecture 6 :
  • Creating a Startup Script for EC2 Instance
  • Lecture 7 :
  • Launching an EC2 Instance Within Our Public Subnet
  • Lecture 8 :
  • Launching an EC2 Instance Within Our Private Subnet
  • Lecture 9 :
  • !!! It's Time to Launch the Whole Infrastructure!
  • Lecture 10 :
  • Let's Check if Everything is Running on AWS Console!
  • Lecture 11 :
  • Connecting to EC2 Instance and Verifying Startup Script Works
  • Lecture 12 :
  • Checking Public Access for Private EC2 Instance
  • Lecture 13 :
  • Section Summary

Section 8 : Elastic Compute Cloud (EC2) with Boto3 Part 2

  • Lecture 1 :
  • Section Overview
  • Lecture 2 :
  • Describing EC2 Instance
  • Lecture 3 :
  • Modifying EC2 Instance
  • Lecture 4 :
  • Stopping EC2 Instance
  • Lecture 5 :
  • Starting EC2 Instance
  • Lecture 6 :
  • Terminating EC2 Instance
  • Lecture 7 :
  • Section Summary

Section 9 : Wrapping Up

  • Lecture 1 :
  • What Have We Learned?
  • Lecture 2 :
  • What Comes Next?
  • Lecture 3 :
  • Thank You!

Niyazi Erdogan,

Hi, I'm Niyazi Erdoğan. I'm a software engineer and AWS Certified Solutions Architect with over ten years of experience in various fields. I'm living in one of the most beautiful cities in the world, Istanbul. I'm a self-taught programmer and I've been programming since I was in middle-school. My experience ranges from embedded development to server-side and client-side development technologies.
View More...

Cisco CCNA R/S (200-125): The Compl...

By : Lazaro (Laz) Diaz

Lecture 153

CCNP Switch (300-115): The Complete...

By : Lazaro (Laz) Diaz

Lecture 93

CCNA Wireless (200-355): The Comple...

By : Lazaro (Laz) Diaz

Lecture 41

Odoo: The complete Master Class: B...

By : Abhilash Nelson

Lecture 32

Convert Hex to Decimal in under 30 ...

By : Lazaro (Laz) Diaz

Lecture 20

Cisco EIGRP Comprehensive Labs Cour...

By : Lazaro (Laz) Diaz

Lecture 10

Buy

$29

Need any help with the platform? Contact us at: support@learnfly.com