
Explore boto3, the Python SDK for automating AWS tasks like launching EC2 and managing S3, using RESTful APIs and Lambda to delete old AMIs.
Create an IAM user with programmatic access, grant admin permissions, and configure the generated access key id and secret key for the AWS CLI and boto3 on the MacBook.
Install python 3.x and the PyCharm IDE on mac os, then install boto3 with pip3 and create a new PyCharm project configured with a python 3.x interpreter.
Learn how to install Visual Studio Code, the popular IDE for DevOps, cloud engineers, and Python development, then run a hello Python script from the terminal.
Master Python fundamentals for scripting with practical examples covering variables, input, formatting, data types, lists, dictionaries, sets, exception handling, control flow, loops, and functions using PyCharm.
Explore how to use boto3 to create S3 and EC2 clients, list buckets, and manage credentials with default profiles or sessions for per-region and profile customization.
Launch EC2 instances with boto3 in Python by creating a script that calls run_instances with image ID, instance type, and min/max counts, then print the returned instance IDs.
Use boto3 to start, stop, and terminate EC2 instances by passing instance IDs, including the dry run option; inspect the response dictionary and print terminated instance IDs.
Describe all EC2 instances using boto3 by creating a script that calls the describe instance method, navigates the reservations and instances structure, and prints each instance ID.
Learn to filter EC2 instances with boto3 by state and tags, returning only running instances or those with env prod, using describe-instances filters.
Explore boto3 collections using the resource object to list queues and EC2 instances, access instance id and type, apply filters by availability zone, and stop all running instances.
Learn to automate EBS snapshots with Boto3 in Python by filtering for backup-tagged instances, creating volume snapshots, and sending email notifications via SNS.
Learn how to delete EBS snapshots older than 15 days using Boto3, by iterating over EC2 snapshots, checking start time, and invoking the delete operation.
This video covers, how to take AMI of EC2 instances in one region and copy them to a different region, this example also includes boto3 waiters concept
Explore serverless architecture with AWS Lambda, run code with zero server maintenance, pay only for execution, and enable built-in high availability and auto scaling for event-driven processing and backend APIs.
Create a lambda function with Python runtime in the AWS management console, then test with sample events and access event data from dictionaries, logging to CloudWatch.
Publish and manage lambda versions to safely deploy updates using CloudWatch rules. Learn to create versions, point events to specific versions, and understand version immutability.
Learn how alias names in lambda point to specific versions, so production updates require reassigning the alias instead of changing cloudwatch events. Deploying new versions abstracts modifications to event source.
Learn how lambda layers manage external Python dependencies in AWS Lambda, using a shared layer for packages like requests to avoid duplicated dependencies and minimize S3 footprint.
Encrypt sensitive environment variables with a custom AWS KMS key, decrypt them in Lambda using boto3, and securely send Slack notifications, covering encryption in transit and at rest.
Learn to automatically process json files uploaded to S3 and store their data in DynamoDB using Python Lambda with boto3, including IAM role setup, CloudWatch logs, and S3 event triggers.
Trigger a lambda function on a CSV upload to S3 and persist parsed records to DynamoDB, demonstrating a boto3-driven, event-driven pipeline from S3 to DynamoDB using Python.
Schedule AWS EC2 instances with a Lambda and CloudWatch events, using a type=scheduled tag to start at 9 a.m. and stop at 6 p.m., Monday through Friday.
Learn to identify and remove unused AMIs in your AWS account using Python and boto3, by listing in-use images, filtering available custom AMIs, and deregistering unused ones.
Implement a lambda function that triggers on a specific ec2 instance stop in production to publish a message to an sns topic, which emails subscribers using boto3 and cloudwatch events.
Explore DynamoDB, AWS's fast NoSQL service, delivering single-digit millisecond latency at any scale with document-based and key-value data models, fully managed, boosted by DAX clusters.
Create a DynamoDB table with a partition key (primary key) and optional sort key, set provisioned capacity, and explore items and attributes with a dynamic schema using Boto3.
Learn to retrieve a DynamoDB item via get_item with a primary key and to delete it with delete_item, verifying the changes via the response.
Learn to upload files to an S3 bucket with boto3's put_object in Python, read a local file, and store it as a private object, then verify in the management console.
delete a specific object from s3 using boto3 in python by creating a delete object script, supplying bucket and key, and confirming successful deletion in the console.
Learn to list all objects in an S3 bucket with boto3 in Python by using the list objects method and printing each object's key from the response contents.
Learn to list all buckets with boto3, iterating the response dictionary to extract and print each bucket name.
This course is designed to help you master the fundamentals of Boto3 and AWS Lambda, empowering you to create dynamic, real-time solutions in the AWS cloud. With a hands-on approach, you'll learn how to effectively use the Boto3 library and Lambda functions to automate tasks and build powerful workflows.
Through a variety of step-by-step examples, you'll gain practical experience in tackling real-world challenges, from managing AWS resources to creating operational automation.
You'll also learn to navigate and utilize the Boto3 documentation, equipping you with the skills to write robust, reusable code to automate virtually any task in AWS. This course provides insights into best practices, tips, and tricks for optimizing automation workflows. Whether you're a developer, sysadmin, or cloud enthusiast, this course will elevate your AWS skills, making you more efficient and confident in leveraging the power of automation. By the end of the course, you'll be ready to design solutions that save time, reduce errors, and improve productivity.
I have added use cases that I implemented in my projects, showcasing real-world applications of Boto3 and AWS Lambda. These examples are designed to help you better understand how to leverage these powerful tools for automating and optimizing AWS workflows. Each use case is explained in detail, with step-by-step instructions that allow you to replicate the solutions in your own projects.