How To Run NodeJS APIs on AWS ECS

A step-by-step guide with an example project

Bhargav Bachina
Bachina Labs

--

AWS provides more than 100 services and it’s very important to know which service you should select for your needs. Amazon Elastic Container Service (Amazon ECS) is a highly scalable, fast, container management service that makes it easy to run, stop, and manage Docker containers on a cluster of Amazon EC2 instances. Amazon ECS lets you launch and stop container-based applications with simple API calls, allows you to get the state of your cluster from a centralized service, and gives you access to many familiar Amazon EC2 features.

In this post, we are going to deploy the NodeJS API on AWS ECS. First, we dockerize our app and push that image to Amazon ECR and run that app on Amazon ECS.

  • Prerequisites
  • Example Project
  • Dockerize the Project
  • Running the API on Docker
  • Pushing Docker Image To ECR
  • Deploying On AWS ECS
  • Accessing the API
  • Cleaning Up
  • Summary
  • Conclusion

Prerequisites

  • If you are new to NodeJS REST API please go through the below link on how to develop and build the…

--

--