Deploying Dockerised React Weather Application on AWS ECS using the Terraform (IaC tool)

Introduction

List of Technologies Used

Pre-requisites

Overview and Steps To be Followed

  1. Git Clone the Weather Application Repository.
  2. Dockerise the React based web application.
  3. Create an image repository on AWS ECR and push the image.
  4. Create an AWS ECS cluster.
  5. Create an AWS ECS task.
  6. Create an AWS ECS service.
  7. Create an elastic load balancer for traffic balancing.

Step 1. Cloning the Weather Web Application

$ git clone https://github.com/jainhemant163/weather-app-indicator.git
$ cd weather-app-indicator
$ npm install
$ npm start

Step 2. Dockerize the React App

Step 3. Push the React App to AWS ECR

terraform init
terraform apply

4. Create the AWS ECS Cluster

Step 5. Create the First Task

Step 6. Create the AWS ECS Service

Network Configuration must be provided when networkMode 'awsvpc' is specified

Step 7. Creating an Elastic Load Balancer(ELB)

Conclusion

References:

--

--

--

Sr. SRE at Oracle, Ex-PayPal, Ex-RedHat. Professional Graduate Student interested in Cloud Computing and Advanced Big Data Processing and Optimization.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

ATTA_NFT

Create a Load Balancer Using Java

100 Days of Code, Done

What is the Priority Queue?

Run Your First Chaos Experiment in 10 Minutes

Getting Started with RealityKit: Debug Components

iPhone 3D models fanning out with different shaders applied

What’s A Variable & How Well Should I Name My Variables.

How To Install Adobe Reader Xi

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Hemant Jain

Hemant Jain

Sr. SRE at Oracle, Ex-PayPal, Ex-RedHat. Professional Graduate Student interested in Cloud Computing and Advanced Big Data Processing and Optimization.

More from Medium

AWS Lambda: Environment variables

How to get AWS security keys from EKS POD in NodeJS

AWS Database Authentication with IAM

Migrate AWS RDS with PostgreSQL database with zero downtime