Course Overview

Managing AWS infrastructure programmatically is essential for automating cloud tasks securely and efficiently. This course offers an in-depth hands-on journey into using Python with the Boto3 SDK, guiding learners on how to script AWS resource interactions across EC2, IAM, and S3 using real-time examples. 

This course begins with setting up the environment on Windows, Linux, and macOS and then introduces core Boto3 concepts such as sessions, clients, and resources. You'll perform read, update, and delete operations on AWS resources, learn to use waiters, paginators, collections, and filters, and understand how to interact with known and unknown multiple resources. Real-world automation scripts, best practices, and exercises are included to build expertise in AWS scripting and IAM automation. 

By the end of this course, you will be equipped with advanced Python Boto3 scripting skills to manage and secure AWS infrastructure efficiently and programmatically. 

What You Will Learn

  • Understand the difference between Boto3 clients and resources.
  • Handle pagination , collections , waiters , filters and exceptions in your scripts.
  • Write real-world automation projects with Python and Boto3.
  • Set up and configure Boto3 and AWS credentials securely.

Program Curriculum

  • Introduction to Environment Setup to Execute Python Boto3 Scripts
  • Creating IAM Users for Multiple AWS Accounts & Access Keys for Them
  • Installing Python, Boto3 and AWSCLI on Windows
  • Executing Python Boto3 Scripts from Local Windows Machine
  • Installing Python, Boto3 and AWSCLI on Linux
  • Executing Python Boto3 Scripts from Local Linux Machine
  • Installing Python, Boto3 and AWSCLI on Mac
  • Executing Python Boto3 Scripts from Local MacOS
  • Priority for Credentials When They Define in Multiple Locations
  • Chapter 1 Quiz

  • Introduction to Boto3 Core Concepts
  • Creation of a Session for Python Boto3 Scripts with Profiles (Access Keys)
  • Creation of Client & Resource Objects from Session
  • Introduction to Meta of Boto3 (Client and Resource Objects)
  • Boto3 Exceptions and General Exception Handling Framework or Script
  • What are Identifiers & Attributes for AWS Resources?
  • Chapter 2 Quiz

  • Introduction to Boto3 Read Operations for Single AWS Resources
  • First Python Boto3 Client Script to Get IAM User Details
  • Adding Exception Handling for Python Boto3 Client Script
  • Python Boto3 Resource Script to Get IAM User Details
  • Help to Get Required Methods from Client
  • Python Boto3 Client & Resource Scripts to Get IAM Role Details
  • Python Boto3 Client Script to Get AWS Account ID
  • Python Boto3 Resource Script to Get EC2 Instance Details
  • Python Boto3 Client Script to Get EC2 Instance Details
  • Chapter 3 Quiz

  • Introduction to Boto3 Read, Update & Delete Operations for Single AWS Resource
  • Introduction to Waiters: Modify or Update EC2 Instance Type
  • Developing Custom Waiters for EC2 Instance Stopped State
  • EC2 Instance Control Script using Boto3 Resource: state, start, stop, reboot...
  • EC2 Instance Control Script using Boto3 Client
  • Task For You: Modify or Update EC2 Instance Type using Boto3 Client
  • Chapter 4 Quiz

  • Introduction to Boto3 CRUD Operations and Waiters for Single AWS Resource
  • Launching EC2 Instance using Boto3 Client Concept and Retrieving Public_IP
  • Launching EC2 Instance using Boto3 Resource Concept & Also Retrieving Public_IP
  • Create an IAM User and Attach a Policy Using Resource & Client Concepts
  • Chapter 5 Quiz

  • Introduction to Boto3 CRUD Operations for Multiple AWS Resources
  • Get Known Multiple IAM Users Details using Client & Resource Concepts
  • Get Known Multiple EC2 Instances Details using Client & Resource Concepts
  • Alternative Way to Retrieve Information for Multiple Known EC2 Instances
  • Resource & Client Control Script for Known Multiple EC2 Instances
  • Task: Develop Boto3 Script to Create Multiple IAM Users & Attach a Policy
  • Chapter 6 Quiz

  • Introduction to Boto3 CRUD Operations for Unknown Multiple AWS Resources
  • Issue to Get or List All IAM Users from a Given AWS Account using Client
  • Introduction to Paginators - List All IAM Users using Client
  • How to Identify if a Method Needs Paginator Logic to Read All Data or Not?
  • List All EC2 Instances Types from AWS for a Given Region
  • Tasks for You - Get All IAM Roles and All Tags for a given IAM User
  • Get or List All IAM Users for a Given IAM Group
  • Get IAM User Details by Reading Its UserId
  • Types of Boto3 Client Paginators - Custom & Built-In Paginators
  • List All EC2 Instances from a Given Region
  • EC2 Instances Discovery Script Version-1 using Boto3 Client Concept
  • Introduction to Boto3 Client Filters
  • Filter IAM Users by Path or List IAM Users by Path
  • Filters: Boto3 Client Script to Get EC2 Instances by Tag, State, AZ
  • Identify and List Untagged EC2 Instances in AWS
  • Introduction to Collections - List All IAM Users using Resource
  • Resource Collection , Filters , List or Describe Instances
  • Get IAM Users for a Given Group Name
  • Update & Delete Operations for Unknown Multiple Resources: EC2 Control Script
  • Task: Develop EC2 Control Script for Unknown Multiple Resources using Resource
  • Chapter 7 Quiz

  • What is DryRun Option or Parameters for Methods?
  • What is Boto3 Client Response?
  • Chapter 8 Quiz

  • List All S3 Buckets using Both Resource & Client Concepts
  • List All S3 Objects for a Given Bucket and Download or Delete Given Object
  • EC2 EBS Volumes Scripts using Client - List & Delete Unused and Untagged Volumes
  • EC2 EBS Volumes Scripts using Resource- List & Delete Unused & Untagged Volumes
  • Chapter 9 Quiz

  • What is Default Session of Boto3?
  • Execute Python Script on an EC2 Instance Where the IAM Role Provides Permissions
  • Chapter 10 Quiz
Load more modules

Instructor

Narendra P

Narendra is an IT Professional with 7+ years of experience in different Domains. Very much interested in learning new technologies and teaching. He believes that the best way to learn by doing it in a fun way. He has good practical knowledge of automation with different Scripting languages like Shell Scripting, Python Scripting, and YAML Scripting. His online classes focus on providing high-quality documentation with practical knowledge. Hands-on experience in learning new technology that makes learning really interesting.

Join over 1 Million professionals from the most renowned Companies in the world!

certificate

Empower Your Learning with Our Flexible Plans

Invest in your future with our flexible subscription plans. Whether you're just starting out or looking to enhance your expertise, there's a plan tailored to meet your needs. Gain access to in-demand skills and courses for your continuous learning needs.

Monthly Plans
Annual Plans
Save 20% with our annual plans!

Pro

Ideal for continuous learning, offering video-based learning with 840+ courses and diverse Learning Paths to enhance your skills.

$ 69.00
Billed monthly or $599.00 billed annually

What is included

  • 840+ Premium Short Courses
  • 70+ Structured Learning Paths
  • Validation of Completion with all courses and learning paths
  • New Courses added every month
Early Access Offer

Pro +

Experience immersive learning with Practice Labs and CTF Challenges for comprehensive skill-building.

$ 79.00
Billed monthly or $699.00 billed annually

Everything in Pro and

  • 1400+ Practice Lab exercises with guided instructions
  • 150+ CTF Challenges with detailed walkthroughs
  • New Practice Labs and Challenges added every month

Related Courses

1 of 50