
Weekend Annoying Task Challenge: SnapRenameAI
Building SnapRenameAI, an AI-powered AWS serverless application that automatically generates intelligent filenames for uploaded images using Amazon Bedrock, AWS Lambda, and Amazon S3.
Turning Tedious Image Renaming into an AI-Powered Workflow
Every week I upload dozens of screenshots, project images, and photos while working on cloud projects and documentation. Like many people, I usually leave them with names such as IMG_20260731.jpg, Screenshot (12).png, or Photo_001.jpeg. After a few days, finding the correct image becomes frustrating because the filenames provide no clue about their contents.
For this AWS Builder Weekend Challenge, I wanted to automate one repetitive task that almost everyone experiences: renaming uploaded images into meaningful filenames.
That's how SnapRenameAI was born.
SnapRenameAI is a lightweight serverless application that automatically reacts whenever an image is uploaded to Amazon S3. Instead of relying on generic filenames, it uses Amazon Bedrock to generate an intelligent filename suggestion, demonstrating how Generative AI and serverless AWS services can work together to simplify everyday tasks.
Vision & What the App Does
The goal of SnapRenameAI is straightforward: eliminate the repetitive task of manually renaming uploaded images.
The application continuously listens for new image uploads inside an Amazon S3 bucket. Whenever an image arrives:
- Amazon S3 generates an ObjectCreated event.
- AWS Lambda is automatically invoked.
- Lambda sends a prompt to Amazon Bedrock (Nova Lite).
- Amazon Bedrock generates a descriptive filename suggestion.
- The suggestion is written to Amazon CloudWatch Logs.
This event-driven workflow means the application works automatically without requiring users to click any buttons or start a process manually.
Instead of dealing with filenames like:
IMG_1234.jpgusers receive a meaningful suggestion such as:
flower_image.jpgThis makes image organization significantly easier and demonstrates how AI can remove small but frequent annoyances.
How I Built It
I built SnapRenameAI entirely using AWS serverless services.
The project began with creating an Amazon S3 bucket to receive uploaded images. Next, I developed an AWS Lambda function in Python that serves as the application's processing engine.
To enable AI capabilities, I requested access to Amazon Bedrock's Nova Lite foundation model and integrated it into the Lambda function using the AWS SDK (Boto3).
After configuring IAM permissions, I connected Amazon S3 to Lambda using an ObjectCreated trigger, allowing uploads to invoke the function automatically.
Whenever a new image is uploaded, Lambda extracts the object's information and sends a prompt to Amazon Bedrock requesting a descriptive filename.
Finally, I verified the workflow using Amazon CloudWatch Logs, confirming that each upload successfully triggered the Lambda function and produced an AI-generated filename suggestion.
During development I encountered several practical challenges:
- Configuring IAM permissions correctly
- Understanding Bedrock Runtime requests
- Setting up S3 Event Notifications
- Testing Lambda execution through CloudWatch Logs
Working through these issues helped me better understand AWS event-driven architectures and cloud-native application development.
AWS Services Used
Amazon S3
Stores uploaded images and generates ObjectCreated events whenever a new image is uploaded.
AWS Lambda
Executes the Python code automatically in response to S3 events without requiring any server management.
Amazon Bedrock (Nova Lite)
Uses Generative AI to create meaningful filename suggestions based on the uploaded image.
Amazon CloudWatch
Captures execution logs for monitoring, debugging, and verifying successful Lambda execution.
AWS IAM
Provides secure access between Lambda, Amazon S3, Amazon Bedrock, and CloudWatch.
Architecture Overview
Image Upload │ ▼ Amazon S3 Bucket │ObjectCreated Event ▼ AWS Lambda │ ▼Amazon Bedrock(Nova Lite) │AI Filename Suggestion ▼CloudWatch LogsThis architecture is fully serverless, event-driven, scalable, and built using AWS managed services.
What I Learned
This challenge gave me practical experience building an AI-powered cloud application using modern AWS services.
Some of the most valuable lessons included:
- Building event-driven workflows with Amazon S3 and AWS Lambda.
- Integrating Generative AI using Amazon Bedrock.
- Managing secure permissions through AWS IAM.
- Debugging serverless applications using Amazon CloudWatch Logs.
- Understanding how AWS services integrate to automate real-world tasks.
Although the application focuses on a simple use case, it demonstrates how small automations can significantly improve productivity.
Future Improvements
There are several features I plan to add in future versions:
- Automatically rename uploaded objects inside Amazon S3.
- Generate filename suggestions based on image content instead of metadata alone.
- Store generated filenames in Amazon DynamoDB.
- Build a simple web interface using AWS Amplify.
- Support additional file types such as PDFs and scanned documents.
- Allow users to customize naming conventions.
GitHub Repository
The complete source code is available here:
Conclusion
Building SnapRenameAI showed me how AWS serverless services and Generative AI can be combined to solve even small everyday frustrations. A task as simple as renaming files becomes an opportunity to learn event-driven architecture, cloud automation, and AI integration.
This project strengthened my understanding of AWS Lambda, Amazon S3, Amazon Bedrock, IAM, and CloudWatch while giving me hands-on experience designing an application that performs useful work automatically.
I'm excited to continue improving SnapRenameAI and explore even more AI-powered automation projects on AWS.
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article