In this hands-on lab, you'll dive into the practical application of Lightswitch and Janitor patterns, essential methodologies for cost-saving and efficient resource management within Amazon Web Services (AWS). You’ll learn how to use the Lightswitch pattern to intelligently turn off running compute instances during non-utilization periods to minimize costs. Additionally, you’ll explore the Janitor pattern, focusing on the identification and deletion of unused and untagged resources to declutter the AWS cloud environment and reduce unnecessary expenses.
You’ll learn how to deploy and configure a set of Python-based Lambda Functions which perform various cost optimization strategies within the lab-provided AWS account. The first Lambda Function will implement the Lightswitch pattern to scan running EC2 instances within the lab-provided AWS account and perform various actions based on the tagging configuration applied to each EC2 instance. The second Lambda Function will implement the Janitor pattern to detect unused/unreferenced AWS resources (EBS volumes, EIPs, etc.).
At the conclusion of this hands-on lab, you’ll have learnt the following actionable strategies to effectively optimize your own AWS cloud resources:
Familiarity with the following will be beneficial but is not required:
The following content can be used to fulfill the prerequisites: