- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Core Tech
Programmatic Cloud Network Management with Python
In this hands-on lab, you will use Python and the AWS SDK (Boto3) to programmatically discover, audit, and report on your cloud network infrastructure. Starting with authenticating to AWS and enumerating VPCs, Subnets, and Gateways, you will build a compliance auditing script that checks Security Groups against a Gold Standard policy, and finish by generating a structured health report from live CloudWatch metrics. By the end, you'll have practical experience automating the network management tasks that underpin Intent-Based Networking and NetDevOps workflows.
Lab Info
Table of Contents
-
Challenge
Discover Cloud Network Resources Using the AWS SDK
- Initialize a secure
boto3session using IAM instance roles to authenticate programmatically with AWS. - Use the EC2 client to enumerate network resources such as VPCs, Subnets, and Internet Gateways within the region.
- Implement API pagination using Boto3 paginators to ensure complete data retrieval in large cloud environments.
- Initialize a secure
-
Challenge
Audit Security Group Compliance Against a Gold Standard Policy
- Write Python logic to identify insecure Security Group rules such as SSH access open to
0.0.0.0/0. - Load a Gold Standard security policy from a JSON file and compare it against the current Security Group configuration.
- Implement a dry-run mode to simulate remediation actions without modifying the live cloud environment.
- Write Python logic to identify insecure Security Group rules such as SSH access open to
-
Challenge
Generate an Automated Cloud Infrastructure Health Report
- Retrieve CloudWatch network throughput metrics for running EC2 instances and identify potential traffic anomalies.
- Export Elastic Network Interface metadata to a structured CSV report for operational visibility.
- Check resource usage against AWS service quotas and flag thresholds that approach capacity limits.
About the author
Real skill practice before real-world application
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.