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