How to Build and Deploy MEAN Stack on AWS EKS

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 Kubernetes Service (Amazon EKS) is a managed service that makes it easy for you to run Kubernetes on AWS without needing to stand up or maintain your own Kubernetes control plane. Kubernetes is an open-source system for automating the deployment, scaling, and management of containerized applications.

In this post, we are going to deploy MEAN Stack. First, we dockerize our app and push that image to Amazon ECR and run that app on Amazon EKS.

  • Prerequisites
  • Example Project
  • Set up a MongoDB Atlas
  • Build For Production
  • Externalize Environment Variables
  • Dockerize the Project
  • Running the WebApp on Docker
  • Pushing Docker Image To ECR
  • Create a Cluster and Worker Nodes
  • Configure kubectl to use Cluster
  • Deploy Kubernetes Objects On EKS Cluster
  • Access the WebApp from the browser
  • Delete the Cluster

--

--