I'm looking to migrate my full stack Node application from Heroku to AWS after experiencing some issues with Heroku's reliability. My setup is a client/server Node monorepo that doesn't really see heavy traffic, and I currently use GitHub for building and deploying to Heroku. What would be the best AWS services to use for this migration—like EC2, ECS, or something else? Additionally, how should I handle environment variables in this new setup? Any resources or guides that could help with the migration process would also be appreciated!
5 Answers
You might want to consider using Lightsail or sticking with EC2, and maybe look into Coolify to streamline things. If you're planning to handle increased traffic later, implementing some auto-scaling could be beneficial.
If your app is already containerized, AWS offers a variety of ways to manage containers. Check out this list of 17 ways to run containers on AWS for options tailored to your needs! You also might want to explore Lambda with API Gateway for serverless architecture; there are plenty of tutorials out there.
Definitely consider containerizing your app. If you want reliability, go with Fargate. If you're looking to cut costs but still want something functional, EC2 might be the way to go.
Just a heads up, AWS had its own outage recently, so if you're thinking about moving for reliability, you might want to check alternatives as well. But Fargate seems to be a solid recommendation for migrating a Heroku app.
Fargate along with CodePipeline is probably your best option if you're looking for a smooth migration. It's designed for running containers and can automate a lot of the deployment process.
Related Questions
Cloudflare Origin SSL Certificate Setup Guide
How To Effectively Monetize A Site With Ads