How to deploy a Docker React application on AWS Fargate

Martin Kaschke
4 min readNov 17, 2020

This article is about the deployment of a simple react application on AWS Fargate. AWS Fargate runs containers without managing servers or clusters.

AWS Fargate is a serverless compute engine for containers that works with both Amazon Elastic Container Service (ECS) and Amazon Elastic Kubernetes Service (EKS). Fargate makes it easy for you to focus on building your applications. Fargate removes the need to provision and manage servers, lets you specify and pay for resources per application, and improves security through application isolation by design.(Source: AWS)

Step 1: Create a cluster with ECS

After login into the AWS console, go to ECS and create a Cluster.

Click on create a new cluster
Choose Fargate
Add name and create new VPC

Step 2: Create a repository and upload a docker image

Now we have to select the repository, click on “View push commands,” and go to our local terminal.

Martin Kaschke

Cloud Architect // AWS // GCP