Amazon ECS Concepts: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 21: Line 21:
====Task Definition Name====
====Task Definition Name====


===Network Mode===
====Network Mode====


The Docker networking mode to use for the container in the task.
The Docker networking mode to use for the container in the task.


===<span id='Task_Execution_Role'></span><span id='Task_Role'></span>Task Role (Task Execution Role)===
====<span id='Task_Execution_Role'></span><span id='Task_Role'></span>Task Role (Task Execution Role)====


The [[Amazon_AWS_Security_Concepts#IAM_Role|IAM role]] used by the task.
The [[Amazon_AWS_Security_Concepts#IAM_Role|IAM role]] used by the task.


===Compatibilities===
====Compatibilities====


The [[#Launch_Type|launch type]] used by the task.
The [[#Launch_Type|launch type]] used by the task.


===Task Memory===
====Task Memory====


===Task CPU===
====Task CPU====


0.25 vCPU
0.25 vCPU


===Task Revision===
====Task Revision====


==Task Operations==
==Task Operations==

Revision as of 02:08, 6 February 2019

Internal

Overview

Amazon Elastic Container Service (ECS) allows deploying Docker containers on a scalable cluster. Docker images to be deployed typically come from Amazon ECR.

ECSHighLevel.png

Container

The container is based on an image, that should be chosen when creating the container.

Task

Task Definition

A task definition is a blueprint, or a configuration, for an application, and describes one or more containers through attributes. Some attributes are configured at the task level but the majority of attributes are configured per container. It specifies the Docker image, how many containers to use for this task and the resource allocation for each container.

Task Definition Name

Network Mode

The Docker networking mode to use for the container in the task.

Task Role (Task Execution Role)

The IAM role used by the task.

Compatibilities

The launch type used by the task.

Task Memory

Task CPU

0.25 vCPU

Task Revision

Task Operations

Service

Service Reference

A service allows running and maintain a specified number (the "desired count") of simultaneous instances of a task definition in an ECS cluster.

Service Definition

Service Name

Number of Desired Tasks

Security Group

A security group is created to allow all public traffic to the service only on the container port specified. Security groups and network access can be further refined after the service creation.

Service Status

Service Type

REPLICA

Service's Task Definition

Load Balancer Type

Service Operations

Cluster

Amazon ECS Clusters

An Amazon ECS cluster is a regional, logical grouping of tasks or services. If the tasks or services in question use the EC2 launch type, the cluster is also a grouping of container instances. A default cluster is always available, but multiple clusters can be created in an account to keep your resources separate. A cluster cannot span more than one region.

Cluster Configuration

Cluster Name

Cluster VPC

Cluster Subnets

Cluster Operations

Launch Type

Amazon ECS Launch Types

EC2 Launch Type

The EC2 launch type allows running a containerized applications on a cluster of Amazon EC2 instances.

Fargate Launch Type

The Fargate launch type allows running a containerized application without the need to provision and manage the backend infrastructure. It only requires registering a task definition. When that is available, Fargate launches the container.

ECS Networking

CloudFormation

Auto Scaling