Skip to content

About

This serverless solution automates the identification of underutilized AWS resources (EC2, RDS, S3) and generates cost-saving recommendations. It combines AWS Lambda, SNS notifications, and PDF reporting to help teams reduce cloud spending proactively

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

Repository files navigation

🚀 AWS Cost Optimization with Lambda

💰 Save money on AWS with an automated cost optimization tool!
This Lambda function identifies underutilized resources and provides actionable recommendations to reduce your cloud bill.


📌 Features

✅ EC2 Analysis: Detects EC2 instances with low CPU utilization.
✅ RDS Analysis: Identifies RDS instances with low CPU usage.
✅ S3 Analysis: Suggests storage class transitions for cost savings.
✅ Automated Alerts: Sends cost-saving recommendations via AWS SNS.


🔧 Prerequisites

Before you begin, ensure you have:

  • ✅ An AWS Account with necessary permissions.
  • ✅ AWS CLI installed and configured.
  • ✅ A Python 3.x environment.
  • ✅ The Boto3 library installed (pip install boto3).
  • ✅ An SNS Topic ARN for notifications.

🚀 Quick Start Guide

1️⃣ Clone the Repository

git clone https://github.com/yourusername/CostOptimizationWithAWSLambda.git
cd CostOptimizationWithAWSLambda

2️⃣ Install Dependencies

pip install -r requirements.txt

3️⃣ Configure AWS Lambda

  • 🔹 Create a new Lambda function in the AWS Console.
  • 🔹 Set the runtime to Python 3.x.
  • 🔹 Upload lambda_function.py as the function code.
  • 🔹 Set the environment variables SNS_TOPIC_ARN , ASSUMABLE_ROLE_NAME, PDF_REPORT_BUCKET .
  • 🔹 Assign IAM roles with permissions for EC2, RDS, S3, and SNS.

4️⃣ Deploy and Test

  • 🚀 Deploy the Lambda function.
  • 🔄 Trigger manually or via CloudWatch Scheduled Events.
  • 📩 Receive cost-saving recommendations via SNS notifications.

📜 License

This project is licensed under the MIT License. See the LICENSE file for details.


💡 Pro Tip: Set up a CloudWatch event to trigger this function regularly for continuous cost savings! 🔄💰

About

This serverless solution automates the identification of underutilized AWS resources (EC2, RDS, S3) and generates cost-saving recommendations. It combines AWS Lambda, SNS notifications, and PDF reporting to help teams reduce cloud spending proactively

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages