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 accept command line arguments in Node.js scripts?

In this short blog post, we’re going to see how we can write a Node.js script that accepts command line arguments and named arguments.

Continue reading How to accept command line arguments in Node.js scripts?

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?

Django REST Framework in Depth!

I’ve always insisted on leveraging the maximum power of the tools, frameworks, and packages we use in our projects. Whether it’s the Python itself or DRF as a 3rd party package.

Why does it even matter?
Well, the less code you have in your project the less the maintenance and tests you need, which resolves in more quality sleep at night. (Less engineering nightmares!)

Continue reading Django REST Framework in Depth!

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!

How to get a job as a Python/Django backend developer roadmap

A while ago I designed a Django Developer Career Roadmap for those who wish to start in this field and enter the software industry market.

Continue reading How to get a job as a Python/Django backend developer roadmap

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