Aws Ec2 Container Service Faq
Which one you pick primarily depends on which factors you want to optimize for.
Aws ec2 container service faq. For more information about interface vpc endpoints see amazon ecs interface vpc endpoints aws privatelink. Go to clusters my cluster my service and view the tasks tab. Just as amazon simple storage service amazon s3 enables storage in the cloud amazon ec2 enables compute in the cloud. Amazon elastic compute cloud amazon ec2 is a web service that provides resizable compute capacity in the cloud.
In this article i will show you how to deploy a simple containerized application on ec2 using the ec2 container service or ecs. For more information about amazon ecs with aws fargate see amazon ecs on aws fargate. The ec2 launch type allows you to run your containerized applications on a cluster of amazon ec2 instances that you manage. Container instances need access to communicate with the amazon ecs service endpoint.
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. What can i do with amazon ec2. Aws ecs create service cli input json file ecs service json you can confirm that the container is running on the ecs console. 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.
Ecs eliminates the need to install operate and scale the cluster management infrastructure. Amazon ecs is a scalable service that is. This can be through an interface vpc endpoint or through your container instances having public ip addresses. 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.
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. 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. 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. Ec2 auto scaling helps you maintain application availability through fleet management for ec2 instances which.
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.