SlideShare a Scribd company logo
..
Amazon EC2 Container Service
Vitaliy Kuznetsov, Senior Solutions Architect @CloudZone
Agenda
Why orchestration?
ECS
Cluster
Task definition
Service
App deployment
New features from Re:Invent 2017
Why Docker?
Why Docker?
Simple to
Build
Simple to
Test
Best Resource
Utilization
Highly
Portable
Simple to
Deploy
Why Orchestration?
DeploymentConfiguration Scaling Monitoring
Why Orchestration?
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
Server
Guest OS
AZ 1 AZ 2
AZ 3
Agenda
Why orchestration?
ECS
Cluster
Task definition
Service
App deployment
New features from Re:Invent 2017
Architecture Diagram
ECS
Amazon EC2 Container Service (ECS) is a highly scalable,
high performance container management service that supports
Docker containers and allows you to easily run applications on
a managed cluster of Amazon EC2 instances.
There is no additional charge for Amazon ECS
ECS Cluster
Cluster
Instance
Task Task
Instance
Task Task
Service
ECS Cluster
ECS Cluster
Cluster configuration:
• Cluster Name
• Provisioning Model
• Instance Type
• Number of instances
• EBS Storage
• Key pair (optional)
ECS Cluster
Networking configuration:
• VPC
• Subnet
• Security Group
Instance IAM role
ECS Cluster
UserData to join to cluster
Agenda
Why orchestration?
ECS
Cluster
Task definition
Service
App deployment
New features from Re:Invent 2017
Task Definition
Cluster
JSON document, that defines the task settings
Most notable parameters:
• Task Role
• Network Mode
• Container definitions
• Constraints
Task Definition
Cluster
Task definition:
• Name
• Task Role
• Network Mode
• Task Memory
• Task CPU (units)
Task Definition
Cluster
• Container definitions
• Constraints
• Volumes
Task Definition - Container Definitions
ClusterContainer definition:
• Name
• Image
• Memory limits
• Port mappings
Task Definition - Container Definitions - Advanced
Cluster
Container environment:
• CPU units
• Essential (Y/N)
• Container overrides
• Env Vars
Task Definition - Container Definitions - Advanced
Cluster
Task Definition - Container Definitions - Advanced
ClusterMounts:
EFS / EBS
Volumes:
From containers
Task definition - Container definitions - Advanced
Cluster
Security:
Privileged
Security Options
Task Definition - Constraints
Cluster
Built-in Attributes
• ecs.ami-id
The ID of the AMI used to launch the instance. An example value for this attribute is "ami-eca289fb"
• ecs.availability-zone
The Availability Zone for the instance. An example value for this attribute is "us-east-1a"
• ecs.instance-type
The instance type for the instance. An example value for this attribute is "g2.2xlarge"
• ecs.os-type
The operating system for the instance. The possible values for this attribute are "linux" and "windows".
Custom Attributes: Cluster query language
Agenda
Why orchestration?
ECS
Cluster
Task definition
Service
App deployment
New features from Re:Invent 2017
ECS: Service
ClusterCluster
Instance
Task A Task B
Instance
Task A Task B
Service
ECS: Service
Service Definition: Task Placement:
• Task Definition
• Cluster
• Service Name
• Number of tasks
• Minimum healthy %
• Maximum %
• AZ Balanced Spread
• AZ Balanced
BinPack
• BinPack
• One Task Per Host
• Custom
ECS: Service
ECS: Service load balancing
Service can be attached to Load Balancer of any type
It is not possible to update after service creation
• Health-check grace period
• Service IAM Role
• Load Balancer Name
ECS: Service load balancing
ECS: Service Auto-scaling
Service can use auto-scaling based on CloudWatch alarms
ECS: Service Auto-scaling
ECS: Task
ECS: Cluster Monitoring
ECS: Service Monitoring
ECS: Useful with Other AWS Services
• Elastic Load Balancing
• Application Load Balancer
• Amazon ECR
• Amazon EFS
• Amazon Elastic Block Store(EBS)
• Amazon Virtual Private Cloud
• AWS Identity and Access Management
• AWS CloudWatch
Agenda
Why orchestration?
ECS
Cluster
Task definition
Service
App deployment
New features from Re:Invent 2017
ECS: Deployment
Task definition
ClusterCluster
Instance
Task A Task B
Instance
Task A Task B
Service
ECS: Deployment
ClusterCluster
Instance
Task A
task definition: service:1.0
Instance
Service
Task A
task definition: service:1.1
Minimum healthy percent: 50
Maximum percent: 100
ECS: Deployment
ClusterCluster
Instance
Task A
task definition: service:1.1
Instance
Service
Task A
task definition: service:1.1
Minimum healthy percent: 50
Maximum percent: 100
ECS: Deployment
ClusterCluster
Instance Task A
task definition: service:1.0
Service
Minimum healthy percent: 100
Maximum percent: 200
Task A
task definition: service:1.1
Task A
task definition: service:1.0
Task A
task definition: service:1.1
Instance
ECS: Deployment
ClusterCluster
Instance
Task A
task definition: service:1.1
Instance
Service
Task A
task definition: service:1.1
Minimum healthy percent: 100
Maximum percent: 200
ECS: Automation
Agenda
Why orchestration?
ECS
Cluster
Task definition
Service
App deployment
New features from Re:Invent 2017
ECS: New features
• awsweb networking mode
• Windows Server Containers
• Memory and CPU Limits at the Task Level
• New regions for ECS and ECR: Sao Paolo and Mumbai
ECS: New features
awsweb networking mode
ClusterCluster
Instance
Task ENI
• Same networking properties as Amazon EC2 instances
• ENI is fully managed by Amazon ECS
ENI
Get in touch at vitaliyku@cloudzone.io
Thank You!

More Related Content

PDF
Amazon Web Services EC2 Container Service (ECS)
PDF
ECS and ECR deep dive
PDF
AWS Community Day - Andrew May - Running Containers in AWS
PDF
Amazon EC2 container service
PDF
Running containers in AWS
PPTX
AWS Elastic Beanstalk and Docker
PDF
AWS Elastic Container Service
PPTX
Amazon ECS.pptx tasks conatiner ecs new car
Amazon Web Services EC2 Container Service (ECS)
ECS and ECR deep dive
AWS Community Day - Andrew May - Running Containers in AWS
Amazon EC2 container service
Running containers in AWS
AWS Elastic Beanstalk and Docker
AWS Elastic Container Service
Amazon ECS.pptx tasks conatiner ecs new car

Similar to ECS - from 0 to 100 (20)

PDF
intro elastic container service amazon aws
PDF
Running Docker Containers on AWS
PPTX
AWS ECS Meetup Talentica
PPTX
ECS and Docker at Okta
PDF
Amazon ECS (December 2015)
PDF
Getting started with Amazon ECS
PDF
Amazon ECS (March 2016)
PPTX
Docker on AWS - the Right Way
PPTX
Docker on Amazon ECS
PDF
Running Docker clusters on AWS (June 2016)
PPTX
Getting Started With Docker on AWS
PDF
ecs-presentation
PPTX
Weaveworks at AWS re:Invent 2016: Operations Management with Amazon ECS
PPTX
Container Management with Amazon ECS
PDF
Getting Started with Docker on AWS
PDF
[Games on AWS 2019] AWS 입문자를 위한 초단기 레벨업 트랙 | AWS 레벨업 하기! : 컨테이너 - 김세호 AWS 솔루션...
PPTX
Leveraging Amzon EC2 Container Services for Container Orchestration
PPTX
Introduction to AWS and Docker on ECS
PDF
ECS & ECR Deep Dive - 김기완 솔루션즈 아키텍트 :: AWS Container Day
PPTX
Designed_Amazon_ECS_Presentation ppt.pptx
intro elastic container service amazon aws
Running Docker Containers on AWS
AWS ECS Meetup Talentica
ECS and Docker at Okta
Amazon ECS (December 2015)
Getting started with Amazon ECS
Amazon ECS (March 2016)
Docker on AWS - the Right Way
Docker on Amazon ECS
Running Docker clusters on AWS (June 2016)
Getting Started With Docker on AWS
ecs-presentation
Weaveworks at AWS re:Invent 2016: Operations Management with Amazon ECS
Container Management with Amazon ECS
Getting Started with Docker on AWS
[Games on AWS 2019] AWS 입문자를 위한 초단기 레벨업 트랙 | AWS 레벨업 하기! : 컨테이너 - 김세호 AWS 솔루션...
Leveraging Amzon EC2 Container Services for Container Orchestration
Introduction to AWS and Docker on ECS
ECS & ECR Deep Dive - 김기완 솔루션즈 아키텍트 :: AWS Container Day
Designed_Amazon_ECS_Presentation ppt.pptx
Ad

Recently uploaded (20)

PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PDF
Approach and Philosophy of On baking technology
PPT
Teaching material agriculture food technology
PDF
[발표본] 너의 과제는 클라우드에 있어_KTDS_김동현_20250524.pdf
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Advanced IT Governance
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Empathic Computing: Creating Shared Understanding
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Advanced Soft Computing BINUS July 2025.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
Spectral efficient network and resource selection model in 5G networks
CIFDAQ's Market Insight: SEC Turns Pro Crypto
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
GamePlan Trading System Review: Professional Trader's Honest Take
Approach and Philosophy of On baking technology
Teaching material agriculture food technology
[발표본] 너의 과제는 클라우드에 있어_KTDS_김동현_20250524.pdf
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
Unlocking AI with Model Context Protocol (MCP)
Advanced IT Governance
NewMind AI Monthly Chronicles - July 2025
Diabetes mellitus diagnosis method based random forest with bat algorithm
Reach Out and Touch Someone: Haptics and Empathic Computing
Empathic Computing: Creating Shared Understanding
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Dropbox Q2 2025 Financial Results & Investor Presentation
Advanced Soft Computing BINUS July 2025.pdf
Ad

ECS - from 0 to 100

Editor's Notes

  • #3: Ask who has experience with ECS? With Dockers? Couple of words about containers. Service discovery? Configuration injection?
  • #4: Ask who has experience with ECS? With Dockers? Couple of words about containers. Service discovery? Configuration injection?
  • #5: One task - one service Do one thing, do well Each service can be written on his specific language Services are speaking via network
  • #9: Ask who has experience with ECS? With Dockers? Couple of words about containers. Service discovery? Configuration injection?
  • #10: Speak about set-up / vpc / subnets / ELB - give definitions: Port mappings, target groups etc.
  • #11: Add slide of ECS features
  • #12: Check if private link for ECS Add note, that instances should have IAM ROLE and Outboud access to connect to cluster
  • #17: Ask who has experience with ECS? With Dockers? Couple of words about containers. Service discovery? Configuration injection?
  • #18: Network Mode: None Bridge awsvpc host Add screenshot with general task definintion screen
  • #19: Network Mode: None Bridge awsvpc host Add screenshot with general task definintion screen Zoom in to sreenshot
  • #20: Network Mode: None Bridge awsvpc host Add screenshot with general task definintion screen Zoom in to sreenshot
  • #21: * Probably need to speak about CNI (awsweb network mode)
  • #22: Advanced container parameters: Environment Network Settings
  • #23: Advanced container parameters: Environment Network Settings Storage And Logging
  • #24: Logs: awslogs, syslog, splunk, fluentd, gelf, journald, logentries… Add description to volumes: EBS, NFS mount, Other docker volumes
  • #25: Security Options: Labels to provide to SELinux / AppArmor + show drop-down of limits
  • #26: Cluster query lang: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-query-language.html
  • #27: Ask who has experience with ECS? With Dockers? Couple of words about containers. Service discovery? Configuration injection?
  • #30: Binpack
  • #31: Dynamic port mapping - only for ALB and NLB;
  • #32: Dynamic port mapping - only for ALB and NLB;
  • #35: Created service -> now we have tasks Demo??
  • #36: Demo??
  • #37: Demo??
  • #39: Ask who has experience with ECS? With Dockers? Couple of words about containers. Service discovery? Configuration injection?
  • #45: Add Architecture diagram with Wordpress :)
  • #46: Ask who has experience with ECS? With Dockers? Couple of words about containers. Service discovery? Configuration injection?
  • #47: Add Architecture diagram with Wordpress Add CNI (awsvpc) as new feature
  • #48: Linux AMI only for now