What is the difference between Amazon ECS and Amazon EC2

+1 vote

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,510 points
43,546 views

4 answers to this question.

+1 vote

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
• 58,020 points
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”.

Hope this helps!

Get AWS SysOps Certification today and become certified.

Thanks!

answered Aug 13, 2020 by nbavis
• 380 points

edited Jul 10, 2023 by Khan Sarfaraz
0 votes

Hi,

Amazon Elastic Compute Cloud is a part of Amazon.com's cloud-computing platform, Amazon Web Services, that allows users to rent virtual computers on which to run their own computer applications.

Whereas, Amazon Elastic Container Service (Amazon ECS) is a fully managed container orchestration service. Customers such as Duolingo, Samsung, GE, and Cookpad use ECS to run their most sensitive and mission-critical applications because of its security, reliability, and scalability.

answered Dec 16, 2020 by MD
• 95,460 points
0 votes

AWS EC2 users can configure their own virtual machines (VMs), choose pre-configured machine images (MIs), or customize MIs. Users have the freedom to choose the size, power, memory capacity, and number of VMs they wish to use. 

Azure users, on the other hand, chose a virtual hard disk (VHD) to create a VM. This can be pre-configured by Microsoft, the user, or a separate third party. It relies on virtual scale sets for scalability purposes. AWS Training in Gurgaon.

answered Feb 26, 2021 by Edureka
• 140 points

Related Questions In AWS

0 votes
2 answers

What is the difference between Amazon SNS and Amazon SQS?

Amazon SQS and SNS are the two ...READ MORE

answered Sep 9, 2020 in AWS by Michael
• 140 points
3,402 views
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,220 points
9,893 views
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
4,316 views
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,360 points
2,347 views
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 10, 2018 in AWS by Priyaj
• 58,020 points
1,802 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP