How to access EC2 over HTTPS? [No ACM, No LB]

Motivation / Why?

There are times that you just need to spin up a server quickly, experiment with something and etc… but you need an HTTPS secure connection. (e.g. WebRTC signaling calls, webhook requests)

Overview

In this article, we’re gonna use AWS API Gateway proxy in order to have an HTTPS connection for our API deployed on an EC2 instance.
There are some articles and tutorials out there which use a load balancer (ALB/NLB), VPC Link to achieve this same goal, but they would cost you extra money which we can easily avoid.

Continue reading How to access EC2 over HTTPS? [No ACM, No LB]

How to auto mount NVMe EBS Volumes on EC2?

In this tutorial, we’re going to mount an NVMe EBS volume to an EC2 instance and add it to /etc/fstab so it automatically mounts the volume after reboots.

Continue reading How to auto mount NVMe EBS Volumes on EC2?

How to upgrade to Python 3.9.0 on Ubuntu 18.04 LTS without internal bleeding!

SPOILER ALERT:
Upgrading the Python version on Ubuntu breaks some packages like apt and pip in your system!
[Bleeding SysAdmin crawling]

In this article we’re going to upgrade python and fix the issues.

Continue reading How to upgrade to Python 3.9.0 on Ubuntu 18.04 LTS without internal bleeding!

Serverless Micro Django | Lightweight, yet powerful Python utility for lambda functions

Serverless Micro Django
https://github.com/mmoallemi99/serverless-micro-django/

A couple of weeks ago I had this task in Agileful to refactor and improve some AWS lambda functions.

There was a bunch of pure SQL queries written alongside python codes which made me think, what if we could use standalone Django ORM in our python lambda functions?

Continue reading Serverless Micro Django | Lightweight, yet powerful Python utility for lambda functions