Project #11 Automating the Stoppage of EC2 Instances using Lambda.
Here is the latest project from my cloud journey.
The DevOps engineering team often uses the development lab to test releases of the application. Due to rising cost of the development lab managers are complaining and money needs to be saved by stopping EC2 instances after all the engineers have clocked out for the day.
💻 My objective was to:
Create a python script that stops all running EC2 instances.
Create a Lambda function using Python 3.8 or higher runtime to run your script.
Add a trigger to the Lambda to ensure it runs on a set schedule daily. No one should be working past 7pm.
In the automation of this task I was able to save the company money.
The journey to Cloud DevOps continues!
Medium:
Github:
#LUIT #AWSLambda #Python #CloudDevOps
Cloud Security Engineer | DevSecOps | GCP Certified | Terraform | CI/CD | Threat Detection & Response
7moAwesome! Automation can lead to major cost savings!