Oreilly - Managing EC2 and VPC: AWS with Python and Boto3 Series
by Niyazi Erdoğan | Publisher: Packt Publishing | Release Date: February 2019 | ISBN: 9781838642938
Learn how to implement EC2 and VPC resources on AWS using the Python API: Boto3! Implement your infrastructure with code!About This VideoLearn to implement EC2 and VPC resources on AWS using Python API, Boto3, and launch your own infrastructure on AWS.Learn how to read and code against API documentation.In DetailIn this course, we'll start by taking a look at the tools and the environment that we need to work with AWS resources. We will teach you how you can set up your environment on both MacOS and Windows. Once we're ready with our environment setup, we'll start implementing our solution on AWS.Then we will create two subnets; Public and Private.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 a 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 move on to learn how to describe EC2 Instances on AWS in detailed way; from their IP addresses 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!All the code and caption files for this course are available at: https://github.com/PacktPublishing/Managing-EC2-and-VPC-AWS-with-Python-and-Boto3-SeriesDownloading the example code for this course: You can download the example code files for all Packt video courses you have purchased from your account at http://www.PacktPub.com. If you purchased this course elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.
- Chapter 1 : Introduction
- Introduction 00:01:13
- About This Course 00:02:59
- What We Will Build In This Course? 00:05:11
- What Do You Need For This Course? 00:04:53
- Chapter 2 : Preparing The Environment for Development
- Section Overview 00:03:43
- About Tools and Environment 00:04:30
- Create an AWS Account If You Don't Already Have It! 00:09:05
- Logging in to AWS Console and A Walkthrough 00:09:13
- Let's Create Our AWS Credentials! 00:11:13
- Chapter 3 : Windows Environment Setup
- Installing Python 3 and Pip 00:02:57
- Installing AWS SDK (CLI) 00:04:20
- Preparing CLI with AWS Credentials 00:02:57
- Installing Boto3 00:01:16
- Verifying The Setup 00:02:15
- Chapter 4 : MacOS Environment Setup
- Installing Python 3 and Pip 00:03:24
- Installing AWS SDK (CLI) 00:03:01
- Preparing CLI with AWS Credentials 00:02:00
- Installing Boto3 00:00:51
- Verifying The Setup 00:02:09
- Chapter 5 : Virtual Private Cloud (VPC) with Boto3 - Part 1
- Section Overview 00:00:44
- Scenario: AWS Console Perspective of What We'll Build 00:02:20
- Setting Up Our Project with PyCharm IDE 00:09:59
- Let's Check Out Boto3 API Docs! 00:01:35
- [Tip] Auto-Complete Magic with Pyboto3 on PyCharm IDE! 00:06:15
- Creating a Virtual Private Cloud (VPC) 00:08:36
- Adding Name Tag To An AWS Resource (VPC) 00:06:36
- Create an Internet Gateway (IGW) 00:02:22
- Attaching the Internet Gateway to VPC 00:04:37
- Section Summary 00:01:58
- Chapter 6 : Virtual Private Cloud (VPC) with Boto3 - Part 2
- Section Overview 00:01:36
- Creating a Public Subnet 00:05:18
- Creating a Route Table for Public Routes 00:03:48
- Adding IGW Route to Route Table 00:05:41
- Associating Public Subnet with Public Route Table 00:05:09
- Allowing Auto-Assign Public IP Address on Subnet 00:04:15
- Creating a Private Subnet 00:06:17
- Section Summary 00:01:57
- Chapter 7 : Elastic Compute Cloud (EC2) with Boto3 - Part 1
- Section Overview 00:02:35
- Scenario: AWS Console Perspective of What We'll Build 00:01:49
- Creating a Key Pair 00:09:19
- Creating a Security Group 00:05:17
- Adding a Rule to Security Group 00:10:36
- Creating a Startup Script for EC2 Instance 00:07:21
- Launching an EC2 Instance Within Our Public Subnet 00:09:35
- Launching an EC2 Instance Within Our Private Subnet 00:07:28
- It's Time to Launch the Whole Infrastructure! 00:05:49
- Let's Check if Everything is Running on AWS Console! 00:11:49
- Connecting to EC2 Instance and Verifying Startup Script Works 00:02:46
- Checking Public Access for Private EC2 Instance 00:02:29
- Section Summary 00:02:26
- Chapter 8 : Elastic Compute Cloud (EC2) with Boto3 - Part 2
- Section Overview 00:01:08
- Describing EC2 Instance 00:06:49
- Modifying EC2 Instance 00:06:48
- Stopping EC2 Instance 00:03:44
- Starting EC2 Instance 00:03:35
- Terminating EC2 Instance 00:03:08
- Section Summary 00:01:52
- Chapter 9 : Wrapping Up
- What Have We Learned? 00:05:30
- Thank You! 00:00:22
TO MAC USERS: If RAR password doesn't work, use this archive program:
RAR Expander 0.8.5 Beta 4 and extract password protected files without error.
TO WIN USERS: If RAR password doesn't work, use this archive program:
Latest Winrar and extract password protected files without error.