Building a Multi-Service Mock API on AWS Free Tier – Part 1

As a product manager with a geeky streak, I embarked on an exciting project to build a multi-service mock API (e.g., PAN to GST, CIN to Director) on AWS, aiming for a cost-effective, scalable testing environment. The goal? Simulate real-world Perfios/Karza/Signzy API’s for downstream local testing, hosted on an EC2 t3.micro instance, directly accessible via HTTP. This blog post dives into the initial setup, challenges, and key decisions.The schema is kept same as the original ones. ...

March 3, 2024 · 2 min · Ronak Sethiya

Optimizing the Mock API – Part 2

Continuing my multi-service mock API journey on AWS Free Tier, I tackled logging, error handling, and authentication to enhance reliability for product managers and geeks alike. With the API live on EC2 (65.2.1XX.XX:8000), direct HTTP access posed challenges for monitoring and security, driving me to refine the setup. Logging was critical for tracking ~10 daily calls. Initially, I faced No such file or directory errors configuring CloudWatch Logs via CLI, but the AWS Management Console saved the day. Using Systems Manager Run Command, I installed the CloudWatch agent, configuring it to collect /var/lib/docker/containers/*/*.log into multi-api-logs: ...

March 3, 2024 · 2 min · Ronak Sethiya