4 ms·
my 2c is package it as a Dockerfile and push it to ECR and set up an ECS fargate stack to run it. It's a little work to understand what this entails, but it wil
by qbxk 2y ago
my 2c is package it as a Dockerfile and push it to ECR and set up an ECS fargate stack to run it. It's a little work to understand what this entails, but it will pay off, is cheap to run, and you can use it for everything.
Don't host your own db, use a t3.micro from RDS for postgres (NOT aurora). If you don't want to use RDS use an EC2 instead. Definitely don't containerize the db.
You'll also need an ALB to put in front of your ECS cluster, but you can use the same ALB for as many clusters or apps as you want
This will probably cost you $20-30/mo before bandwidth charges and will carry a lot of traffic, but if you need more you just increment how many nodes you're running, no sweat
Probably learn how to do this using the console, but you do this all with terraform and you can just rubber stamp your application infra like magic
- fazkan 2y agothis seems to be too much complexity. have you ran this setup in production? curious about the maintenance overhead required?
- qbxk 2y agoyes I run dozens of apps in a professional capacity this way. Once it's set up, there's no further maintenance, scaling is a piece of cake and can be done with a aws-sdk cli command You will probably want a deploy script that runs the docker build command and pushes to ECR and then reboots the ECS containers. Rerun this script periodically to update your base image and libraries.