This project is a simple Bash script that reports AWS resource usage using the AWS CLI and automates execution using cron.
- Lists S3 buckets
- Lists EC2 instances (Instance ID and state)
- Lists Lambda functions
- Lists IAM users
- Bash
- AWS CLI v2
- Linux (Ubuntu)
- Cron
chmod +x aws_resource_tracker.sh
./aws_resource_tracker.sh
#Cron Automation
0 8 * * * /home/ubuntu/aws_resource_tracker.sh >> /home/ubuntu/aws_resource_report.log 2>&1
#Output is formatted using AWS CLI --query and --output table
This script uses the AWS CLI to query core AWS services.
JMESPath queries are applied to extract only relevant fields.
Output is formatted as tables for readability and can be scheduled using cron for automated reporting.