I am a Bioinformatics Engineer working closesly in the biotech company with the Bioinformatics team and the lab team. I am currently working on a metadata aggregation system, that would allow to combine all the data source into one database (DynamoDB) that could be used by all of the stakeholders. The current challenge that I have are the entrypoints - for skilled users familar with the terminal, I will have a CLI to ingest any sample manifests into my system, however I need to design a very minimal GUI for non-technical users i.e lab users. The sample manifest ingestion should simply be upload of the file of specific fromat (csv) to a dedicated location in S3 (does not have to be provided by the user). From there, my lambda function will pick up the event.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
From the design point of view I was thinking that maybe just have a minimal window with “browse files” option and then button to upload or exit. I would want to be able to distribute this program (python-based ideally) in a way, that regular users are used to - have an icon on the desktop (macbook-first solution), so they could click on it and initiate the upload. Given the fact that this would need to be uploaded to Amazon S3, I would need to be able to handle authentication. Another option could be to have a very simple web interface that would perform exactly same functionality, however I am not sure what type of security constraints or costs could it have versus an executable on the desktop. One of my ideas was to combine aws cognito as the authentication and have the app deployed via elastic beanstalk, so the security could be easily sorted and the aws connectivity with different services.
Can you analyse my user requirements, need to have somethign super simple, because we cannot commit many resources for long-term maintenance, and we need to consider costs, security and usability and user-friendliness, compatibility with Macbook ecosystem.
Can you respond by generating reports to cover all useful soutions to address my requirements, evaluates both of my ideas with supporting necessary python packages, documents alternative solutions if possible, with sketched architecture and user flow. It needs to have advantages and disadvantages highlighted.
Assistant
Metadata Aggregation System Design Report
Objective: Design a minimal, secure, and user-friendly solution for non-technical users (lab staff) to upload CSV manifests to AWS S3, triggering a Lambda function to process data into DynamoDB.
1. User Requirements Summary
Requirement
Details
Target Users
Non-technical lab users (MacBook users).
Functionality
Upload CSV files to S3 → Lambda processes data into DynamoDB.
Constraints
Low maintenance, cost-effective, secure, user-friendly, Mac compatibility.
Additional Needs
Authentication for S3 access, no terminal required.
2. Proposed Solutions
Option 1: Desktop GUI Application (Python-Based)
Description: A standalone macOS app with a simple GUI (browse + upload) that securely uploads CSV files to S3.
Frontend: HTML/JavaScript (simple form for file upload).
Backend: Python (Flask/Django) or Serverless Framework (Lambda + API Gateway).
Authentication: AWS Cognito User Pool (for user login) or Identity Pool (for unauthenticated access).
Security: Cognito handles user authentication; S3 policies restrict access.
User Flow
Lab user opens a browser and navigates to the web app URL.
User logs in via Cognito (if required).
User uploads a CSV file via the web form.
Web app validates file format and uploads to S3.
Lambda processes data and writes to DynamoDB.
Advantages
Centralized Maintenance: Easier to update and scale.
Secure Authentication: Cognito handles user credentials.
Cross-Platform: Works on any device with a browser.
Disadvantages
Cost: Potential for higher costs with Elastic Beanstalk or API Gateway.
Internet Dependency: Requires stable internet access.
Complex Setup: Initial configuration for Cognito, S3, and Lambda.
Python Packages
Flask or Django (backend)
boto3 (AWS SDK)
aws-cognito (Cognito integration)
serverless (optional for serverless deployment)
Alternative Solutions
Hybrid Approach:
Use a desktop app for local uploads but integrate with Cognito for authentication.
Example: Desktop app uses Cognito Identity Pool to fetch temporary S3 credentials.
CLI + GUI Wrapper:
Provide a CLI for skilled users.
Create a GUI wrapper (e.g., using PyQt or Electron) for non-technical users.
S3 Pre-Signed URLs:
Generate pre-signed URLs for direct S3 uploads from the web/app, bypassing Lambda triggers.
Pros: Simpler architecture.
Cons: No automatic Lambda triggering; requires custom event handling.
3. Recommendation
Best Fit for Your Requirements
Criteria
Desktop GUI
Web Interface
Usability
✅ High (native Mac app)
✅ Moderate (browser-based)
Security
⚠️ Moderate (Cognito/STS needed)
✅ High (Cognito + S3 policies)
Cost
✅ Low (no server)
⚠️ Moderate (Elastic Beanstalk/API Gateway)
Maintenance
⚠️ High (updates, compatibility)
✅ Low (centralized)
Scalability
❌ Limited
✅ High
Verdict:
Desktop GUI is ideal if:
Lab users prefer a native app.
Internet access is unreliable.
Budget is tight for server costs.
Web Interface is ideal if:
Centralized control and security are priorities.
Long-term maintenance is a concern.
Cross-platform access is needed.
4. Implementation Roadmap
Option 1: Desktop GUI (MacOS)
Develop GUI: Use tkinter for a minimal interface.
Authentication: Integrate AWS Cognito Identity Pool for temporary credentials.
Packaging: Use PyInstaller to create a .dmg file.
Testing: Validate CSV parsing and S3 upload.
Option 2: Web Interface
Set Up Cognito: Create a User Pool or Identity Pool.
Backend: Deploy a Flask app on Elastic Beanstalk or Serverless Framework.
Frontend: Simple HTML form with JavaScript for file upload.
Security: Enforce S3 bucket policies and Cognito authentication.
5. Security Best Practices
For Desktop Apps:
Use AWS STS to fetch temporary credentials.
Avoid hardcoding credentials in the app.
For Web Apps:
Use Cognito User Pools for authenticated access.
Restrict S3 bucket policies to specific IAM roles.
6. Cost Estimation
Option
Estimated Monthly Cost
Notes
Desktop App
0–5 (no server)
No AWS costs for infrastructure.
Web App
10–50
Dependent on API Gateway/Lambda usage.
7. Conclusion
For your use case, a desktop GUI app is the most user-friendly and cost-effective solution, provided you address authentication securely (e.g., via Cognito or STS). However, if long-term maintenance and security are critical, a web interface with Cognito is the safer choice.
Final Suggestion: Start with the desktop GUI for quick deployment, and consider migrating to a web interface if scalability or security becomes a concern.