Managing EC2 and VPC: AWS with Python and Boto3 Series

Profile photo of
By
via Udemy
  • Overview
  • Curriculum
  • Instructor
  • Review

About This Course

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

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!

  • 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!

Course Curriculum

Instructor

Profile photo of

Review
4.9 course rating
4K ratings
ui-avatar of Satish More
Satish M.
4.5
1 year ago

Good

  • Helpful
  • Not helpful
ui-avatar of Immadi Nageswara Rao
Immadi N. R.
2.5
1 year ago

nice sessions to learn

  • Helpful
  • Not helpful
ui-avatar of Pallav Walavalkar
Pallav W.
3.5
2 years ago

Explanation about why these clients are needed and their functionality is needed.

  • Helpful
  • Not helpful
ui-avatar of Kamal Heydarov
Kamal H.
5.0
2 years ago

Instructor is very knowledgeable. He structured the course in a very organized way by providing a clean and neat code.

  • Helpful
  • Not helpful
ui-avatar of Preet Pratik Mishra
Preet P. M.
5.0
3 years ago

ok

  • Helpful
  • Not helpful
ui-avatar of Alexandre Mulatinho
Alexandre M.
4.5
3 years ago

The course is basic, but the professor master the subject and pass to the students what it proposes, the only thing I think could be better is the way to access the functions and objects, maybe it should show how to use dir() and help() functions as lots of people are facing issues on autocompletion using PyCharm and Boto3.

  • Helpful
  • Not helpful
ui-avatar of Bertrand Rigaldies
Bertrand R.
3.0
3 years ago

The instructor does not execute the code incrementally as each object is created. It would be nice to see each object create, and then check its existence from the AWS console.
Also, to make the python script repeatable, a method is needed to delete all created objects.
This is not a networking class, but a little bit of background on Internet Gateways, Internet Route Tables, and Subnets would have been nice.

  • Helpful
  • Not helpful
ui-avatar of Debankan Ganguly
Debankan G.
5.0
3 years ago

This course is a great stepping stone to learning programmatic access to AWS services. Very unique and interesting. Thoroughly enjoyed learning every bit of it.

  • Helpful
  • Not helpful
ui-avatar of Preeti Subramanian
Preeti S.
5.0
3 years ago

Great! Easy to implement! Thanks for introducing me to Boto3 world

  • Helpful
  • Not helpful
ui-avatar of Charles Halladay
Charles H.
4.5
3 years ago

Did this course as a follow-on for the Udemy Python Zero to Hero course. The instructor did a really good job of demonstrating the workflow and details of the course. Very valuable to me and I'll be taking the author's other AWS courses.

  • Helpful
  • Not helpful
Leave A Reply

Your email address will not be published. Required fields are marked *

Ratings

Courses You May Like

Lorem ipsum dolor sit amet elit
Show More Courses