Ec2 deploy and manage your own cluster of ec2 instances for running the containers aws fargate run containers directly without any ec2 instances both are completely valid techniques for operating your containers in a scalable and reliable fashion.
Aws ec2 container service faq.
Amazon elastic compute cloud amazon ec2 is a web service that provides resizable compute capacity in the cloud.
Amazon ec2 container service ecs is a cloud computing service in amazon web services aws that manages containers.
Which one you pick primarily depends on which factors you want to optimize for.
Container instances need access to communicate with the amazon ecs service endpoint.
This can be through an interface vpc endpoint or through your container instances having public ip addresses.
For more information about amazon ecs with aws fargate see amazon ecs on aws fargate.
In this article i will show you how to deploy a simple containerized application on ec2 using the ec2 container service or ecs.
Ecs eliminates the need to install operate and scale the cluster management infrastructure.
Ec2 auto scaling helps you maintain application availability through fleet management for ec2 instances which.
When you create a new task definition or a task definition revision you can then specify a role by selecting it form the task role drop down or using the taskrolearn.
Aws ec2 container service ecs.
Aws ec2 container service ecs is a highly scalable high performance container management service that supports docker containers and allows running applications on a managed cluster of ec2 instances.
Amazon ec2 auto scaling is a fully managed service designed to launch or terminate amazon ec2 instances automatically to help ensure you have the correct number of amazon ec2 instances available to handle the load for your application.
It is designed to make web scale computing easier for developers.
What can i do with amazon ec2.
For more information about interface vpc endpoints see amazon ecs interface vpc endpoints aws privatelink.
Aws ecs create service cli input json file ecs service json you can confirm that the container is running on the ecs console.
Begin the process by logging in to the aws console and then choose ec2 container service from the list of available services it s in the compute section.
You first need to create an iam role for your task using the amazon ec2 container service task role service role and attaching a policy with the required permissions.
Go to clusters my cluster my service and view the tasks tab.
It enables developers to deploy and manage scalable applications that run on groups of servers called clusters through application programming interface api calls and task definitions.