Member-only story
Deploy Node Service on ECS Fargate
4 min readJan 19, 2022
First thing first, what is ECS Fargate?
ECS Fargate is the combination of 2 different services, ECS and Fargate.
ECS stands for Elastic Container Service and its Fully AWS-managed Container Orchestration tool and you don’t need to pay for Control Node(Similar to Kubernetes Master Worker nodes).
Fargate is a kind of worker node where you don’t need to provision/maintain the underlying Ec2 machine. you just need to provide specifications of your desired container for example; 2GiB memory with 1core CPUs
Why adopt Fargate:
- AWS Fargate is a serverless, pay-as-you-go compute engine that lets you focus on building applications without managing servers.
- Deploy and manage your applications, not infrastructure.
- Fargate removes the operational overhead of scaling, patching, securing, and managing servers.
- Monitor your applications via built-in integrations with AWS services like Amazon CloudWatch Container Insights.
- Supports multiple architectures: Windows, Linux/amd, and Linux/arm
Sample Hello world Node application:
- Below application would throw 200 response code / path and give us Hellow world as output.