How do I effectively deploy a full stack Ruby and JS app on AWS?
Asked by
CloudyDreamz97
I'm new to AWS and trying to deploy a full stack Ruby on Rails app paired with a JavaScript frontend using Elastic Beanstalk, and it's proving to be more complicated than I had anticipated. Can I just upload the app as a zipped bundle within a single application, or should I create separate applications for the backend and frontend? Any tips or general advice would be greatly appreciated since I'm venturing into this for the first time. Thanks!
Answers
Have you considered why you chose Elastic Beanstalk? These days, I recommend using containers on ECS instead. It's generally easier to build and test your applications before deployment, and I'm finding EB's claims of 'one-click deploy' donโt really hold up.
Reply to this answer
Definitely go with ECS Fargate in front of an ALB. Containerizing your app, pushing it to ECR, and then running a Fargate task is straightforward. Plus, you can use something like Terraform or AWS CDK to manage your infrastructureโsuper handy for modification and reusability!
DevAdventurer: I wish it were that easy! I spent a whole week just getting a couple of ECS containers to work alongside setting up everything else like the load balancer and databases. EBโs approach is definitely tempting.
Reply to this answer
Add your answer
Answers are reviewed before publication.
RubyFanatic88: Honestly, I fell for the marketing too! So, would you say itโs worth the effort to dockerize my app for ECS instead? What are the cost implications?