What is the difference between Amazon ECS and Amazon EC2?

0 votes

Is ECS just a docker install in EC2? If I already have a EC2, then I start a ECS, does it mean I have two instance?

Jul 10, 2018 in AWS by bug_seeker
• 15,400 points

3 answers to this question.

0 votes

EC2 allows you to launch individual instances which you can use for pretty much whatever you like. ECS is a container service, which means it will launch instances that will be ready to launch container applications. The main distinction between the two services is that with EC2 you have to manage each instance separately in whatever method you choose (manually, using a CM tool or any other way) - deploy your applications and maintain the connection between the servers yourself. ECS allows you to launch a cluster of machines that will serve as the deployment ground of your container apps, allowing you to treat all instances in the cluster as one big instance available for your container workload.

And to answer your question - You can start an ECS cluster with no instances in it, but then it won't be able to run anything on it. Once you register an EC2 instance inside an ECS cluster, containers are ready to run in it. So the bottom line is - you can use both ECS and EC2 with only one instance, but that is not the actual use case these services were built for.

answered Jul 11, 2018 by Priyaj
• 57,550 points
–3 votes

AWS ECS is just a logical grouping (cluster) of EC2 instances, and all the EC2 instances part of an ECS act as Docker host which used to send a command to launch a container on them ( EC2 ). While on the other hand, an Amazon ECS without any EC2 registered (added to the cluster) is good for nothing. For  more visit: aws training in Delhi

answered Jun 11, 2019 by ananyagupta
Hey Ananya, there is nothing useful in the link you've provided. Please refrain from Promoting other companies. We'd like to keep this platform clean to discuss only technical problems.
Hahaha! Amazon ECS is not just a logical grouping of EC2 instances, it's way more than that. It's basically a container orchestration tool that helps you use Docker containers without a third party tool.
0 votes
Amazon Elastic Container Service (ECS) lets you run Docker containers without having to manage the orchestration of those containers. With ECS, you can deploy your containers on EC2 servers or in a serverless mode, which Amazon calls Fargate. Both deployment types handle the orchestration and underlying server management for you, so you can just schedule and deploy your containers. Combined with AWS Fargate, it allows you to run containers without selecting servers.

Amazon ECS can work for both long-running jobs and short bursts of tasks, and includes tools for adjusting the scale of the container fleet as well as the scheduling of those containers. Task placement definitions let you choose which instances get which containers, or you can let AWS manage this by spreading across all Availability Zones.

Amazon Elastic Compute Cloud (EC2) is AWS’s core computing product and provides resizable, scalable computing capacity in the cloud. Amazon offers a range of EC2 instance types, optimized for various workloads and usage requirements. As AWS has continued to add options to EC2, there are now EC2 instance types for almost any application. In AWS, servers are called Elastic Compute Cloud (EC2) “Instances”.
answered 1 day ago by nbavis
• 220 points

Related Questions In AWS

0 votes
1 answer

What is the difference between Amazon SNS and Amazon SQS?

SNS is a distributed publish-subscribe system and the messages are pushed to ...READ MORE

answered Jul 30, 2018 in AWS by Mrunal
• 680 points
0 votes
1 answer

What is the difference between Amazon Athena and S3 Select?

Athena can be used by AWS Console, ...READ MORE

answered Jan 17, 2019 in AWS by Edureka
• 4,200 points
0 votes
2 answers

What is the difference between VPC security group and EC2 security group?

EC2-Classic Security Group When the instance is launched, ...READ MORE

answered Feb 11, 2019 in AWS by Ramaya
0 votes
1 answer

What is difference between Lightsail and EC2?

EC2 is one of the service by AWS ...READ MORE

answered Aug 7, 2018 in AWS by ArchanaNagur
• 2,320 points
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

What is the difference between Amazon Cloudfront and S3

major difference is that cloudfront allows you ...READ MORE

answered Jul 9, 2018 in AWS by Priyaj
• 57,550 points