Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

164 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python-programming-for-Cloud

Daily Cloud programming in python

Variables and Data Types

Learned: [str, int, bool, float]

Applied: AWS cost calculation

File: data types

Python Operators

Learned: [Assignment, Membership, Logical, Comparison, Arithmetic]

Applied: Shopping cart logic

File: Operators

Conditional statement

Learned: [ If, elif, else conditional logic, dictionary, String .join() to combine items with separator, Input validation (.lower(), .strip()) ]

Application: AWS service mapper

File: Condtional statements

lists.

Learned Python lists by building a basic IAM cleanup script. I now understand lists (mutable) vs tuples (immutable), conditional use of if and in, indexing, and replacing values. I also learned list slicing and its usefulness during audits.

An empty list [] evaluates to False; errors only occur when accessing invalid indexes. pop() removes the last item, while pop(0) removes the first. I used .index() to convert a name to an index so I could modify the list (used in line 20 of the code).

File: IAM Cleanup

Lists continuation

File:Access key rotator IAM user permission audits

Dictionaries

Learned how to extracts, modify and assign a new file to a dictionary

File: Dict

Loops

Learned: for, while, else, .get(), in, else, if, break(stop), continue(skip).

Application: Audit tool

File:IAM User Audit Tool Loops.py

Functions

Application:Functions

Exception Handling

Application: KeyError single policy validator bulk policy validator

Architecture Diagram:Exception handling excalidraw

Boto3

Application: S3-Bucket-creation

Boto3 continuation + CRUD

Application: S3-crud

Boto3 for EC2 mgt

Application: EC2-Creation-and-termination

Boto3 for VPC mgt

  • Learned Boto3 Waiters (eventual consistency), Error Handling, Idempotency, Variable Management.

Application: Automated VPC Setup Automated VPC Teardown

Old Script: E2061654-E091-46AE-BE09-1C1874E92B77_4_5005_c

Updated Script: Screenshot 2026-01-22 at 6 43 29 PM

Screenshot 2026-01-22 at 7 20 25 PM

CIS AWS BENCHMARK

Application:audit_keys

Discovery of duplicate access keys: 8EEAE073-E73D-4FA0-ADCF-BAB521A79AEA_1_201_a

Deactivation: image

AWS Console: image

Security Notes: All keys displayed are deleted after project, so don't bother hacking me.

About

Daily Cloud programming

Resources

Stars

4 stars

Watchers

0 watching

Forks

Contributors

Languages