SlideShare a Scribd company logo
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Getting started on AWS with Amazon ECS
O n l i n e W e b i n a r – 2 0 2 0 / 0 5 / 2 6
Cobus Bernard
Sr Developer Advocate
Amazon Web Services
@cobusbernard
cobusbernard
cobusbernard
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agenda
Creating a cluster
Deploy using Amazon CodePipeline
Using Amazon EC2 hosts vs AWS Fargate
Capacity Providers
Autoscaling using Spot and On-Demand
Q&A
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Infrastructure required
Subnet
Subnet
VPC
Availability Zone
US-EAST-1A
Subnet
Subnet
Availability Zone
US-EAST-1C
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
m4.xlarge Spot
Weight of 1
m4.2xlarge Spot
Weight of 2
m4.4xlarge On-Demand
Weight of 4
Availability
Zone 1
Availability
Zone 2
Availability
Zone 3
Different
instance types
contribute
differently to
total capacity
Now: Spot, On-Demand, and RIs in a single ASG with weights
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
API parameters
"MixedInstancesPolicy": {
"LaunchTemplate": {
"LaunchTemplateSpecification": {
"LaunchTemplateName": "MyLaunchTemplate"
},
"Overrides": [
{
"InstanceType": "m4.xLarge",
"WeightedCapacity": "1"
},
{
"InstanceType": "m4.2xLarge",
"WeightedCapacity": "2"
},
{
"InstanceType": "m4.4xLarge",
"WeightedCapacity": "4"
}
]
},
"InstancesDistribution": {
"OnDemandAllocationStrategy": "prioritized",
"OnDemandBaseCapacity": 10,
"OnDemandPercentageAboveBaseCapacity": 50,
"SpotAllocationStrategy": “capacity-optimized",
"SpotInstancePools": 2
}
}
AZ1 and AZ2
Desired
Min
Max
On-Demand base
50% On-Demand
50% Spot
Minimum On-Demand (10)
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
ECS
agent
Docker
agent
OS
Amazon Elastic
Compute Cloud
(Amazon EC2) instance
ECS
agent
Docker
agent
OS
EC2 instance
ECS
agent
Docker
agent
OS
EC2 instance
Amazon Elastic Container Service
(Amazon ECS)
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Thank you!
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Cobus Bernard
Sr Developer Advocate
Amazon Web Services
@cobusbernard
cobusbernard
cobusbernard

More Related Content

PPTX
AWS SSA Webinar 10 - Getting Started on AWS: Networking
PPTX
AWS SSA Webinar 16 - Getting Started on AWS with Amazon EC2
PPTX
AWS SSA Webinar 11 - Getting started on AWS: Security
PPTX
AWS SSA Webinar 9 - Getting Started on AWS: Storage
PPTX
AWS EMEA Online Summit - Blending Spot and On-Demand instances to optimizing ...
PPTX
AWS SSA Webinar 15 - Getting started on AWS with Containers: Amazon EKS
PPTX
AWS SSA Webinar 18 - Getting Started with Multi-Region Architecture: Data
PPTX
AWS EMEA Online Summit - Live coding with containers
AWS SSA Webinar 10 - Getting Started on AWS: Networking
AWS SSA Webinar 16 - Getting Started on AWS with Amazon EC2
AWS SSA Webinar 11 - Getting started on AWS: Security
AWS SSA Webinar 9 - Getting Started on AWS: Storage
AWS EMEA Online Summit - Blending Spot and On-Demand instances to optimizing ...
AWS SSA Webinar 15 - Getting started on AWS with Containers: Amazon EKS
AWS SSA Webinar 18 - Getting Started with Multi-Region Architecture: Data
AWS EMEA Online Summit - Live coding with containers

What's hot (10)

PPTX
AWS SSA Webinar 19 - Getting Started with Multi-Region Architecture: Services
PPTX
AWS SSA Webinar 17 - Getting Started on AWS with Amazon RDS
PPTX
AWS SSA Webinar 12 - Getting started on AWS with Containers
PPTX
AWS SSA Webinar 8 - Getting Started on AWS: Compute
PPTX
AWS SSA Webinar - Cost optimisation on AWS
PPTX
AWS Startup Garage - Building your MVP on AWS
PPTX
Governance for Multiple Teams Sharing a Nomad Cluster
PDF
AWS CZSK Webinář 2020.03: AWS Outposts
PPTX
AWS SSA Webinar 28 - Getting Started with AWS - Infrastructure as Code
PDF
AWS CZSK Webinar - Migrácia desktopov a aplikácií do AWS cloudu s Amazon Work...
AWS SSA Webinar 19 - Getting Started with Multi-Region Architecture: Services
AWS SSA Webinar 17 - Getting Started on AWS with Amazon RDS
AWS SSA Webinar 12 - Getting started on AWS with Containers
AWS SSA Webinar 8 - Getting Started on AWS: Compute
AWS SSA Webinar - Cost optimisation on AWS
AWS Startup Garage - Building your MVP on AWS
Governance for Multiple Teams Sharing a Nomad Cluster
AWS CZSK Webinář 2020.03: AWS Outposts
AWS SSA Webinar 28 - Getting Started with AWS - Infrastructure as Code
AWS CZSK Webinar - Migrácia desktopov a aplikácií do AWS cloudu s Amazon Work...
Ad

Similar to AWS SSA Webinar 13 - Getting started on AWS with Containers: Amazon ECS (12)

PPTX
DevConf 2020: Resiliency and availability design patterns for the cloud
PPTX
HashiTalks Africa - Going multi-account on AWS with Terraform
PPTX
AWS SSA Webinar 7 - Getting Started on AWS
PPTX
Leveraging serverless in fullstack development
PDF
KINX와 함께 하는 AWS Direct Connect 도입 - 남시우 매니저, KINX :: AWS Summit Seoul 2019
PPTX
Core services
PDF
20190318 Amazon EC2 スポットインスタンス再入門
PDF
Aws container services overview
PDF
20200422 AWS Black Belt Online Seminar Amazon Elastic Container Service (Amaz...
PPTX
AWS SSA Webinar 34 - Getting started with databases on AWS - Managing DBs wit...
PPTX
Secure and Fast microVM for Serverless Computing using Firecracker
PPTX
AWS re:Inforce 2019 Builders session: Simplify and secure your network archit...
DevConf 2020: Resiliency and availability design patterns for the cloud
HashiTalks Africa - Going multi-account on AWS with Terraform
AWS SSA Webinar 7 - Getting Started on AWS
Leveraging serverless in fullstack development
KINX와 함께 하는 AWS Direct Connect 도입 - 남시우 매니저, KINX :: AWS Summit Seoul 2019
Core services
20190318 Amazon EC2 スポットインスタンス再入門
Aws container services overview
20200422 AWS Black Belt Online Seminar Amazon Elastic Container Service (Amaz...
AWS SSA Webinar 34 - Getting started with databases on AWS - Managing DBs wit...
Secure and Fast microVM for Serverless Computing using Firecracker
AWS re:Inforce 2019 Builders session: Simplify and secure your network archit...
Ad

More from Cobus Bernard (12)

PPTX
London Microservices Meetup: Lessons learnt adopting microservices
PPTX
AWS SSA Webinar 33 - Getting started with databases on AWS Amazon DynamoDB
PPTX
AWS SSA Webinar 32 - Getting Started with databases on AWS: Choosing the righ...
PPTX
AWS SSA Webinar 30 - Getting Started with AWS - Infrastructure as Code - Terr...
PPTX
AWS Webinar 24 - Getting Started with AWS - Understanding DR
PPTX
AWS Webinar 23 - Getting Started with AWS - Understanding total cost of owner...
PPTX
AWS SSA Webinar 21 - Getting Started with Data lakes on AWS
PDF
AWS SSA Webinar 20 - Getting Started with Data Warehouses on AWS
PPTX
AWS SSA Webinar 9 - Getting Started on AWS: Storage
PPTX
DevConfZA 2020 : Automating your cloud: What are the building blocks
PPTX
AWS Lake Formation Deep Dive
PPTX
Getting started with AWS Machine Learning
London Microservices Meetup: Lessons learnt adopting microservices
AWS SSA Webinar 33 - Getting started with databases on AWS Amazon DynamoDB
AWS SSA Webinar 32 - Getting Started with databases on AWS: Choosing the righ...
AWS SSA Webinar 30 - Getting Started with AWS - Infrastructure as Code - Terr...
AWS Webinar 24 - Getting Started with AWS - Understanding DR
AWS Webinar 23 - Getting Started with AWS - Understanding total cost of owner...
AWS SSA Webinar 21 - Getting Started with Data lakes on AWS
AWS SSA Webinar 20 - Getting Started with Data Warehouses on AWS
AWS SSA Webinar 9 - Getting Started on AWS: Storage
DevConfZA 2020 : Automating your cloud: What are the building blocks
AWS Lake Formation Deep Dive
Getting started with AWS Machine Learning

Recently uploaded (20)

DOCX
Unit-3 cyber security network security of internet system
PPTX
CHE NAA, , b,mn,mblblblbljb jb jlb ,j , ,C PPT.pptx
PPTX
Funds Management Learning Material for Beg
PPTX
Module 1 - Cyber Law and Ethics 101.pptx
PDF
Slides PDF The World Game (s) Eco Economic Epochs.pdf
PPTX
presentation_pfe-universite-molay-seltan.pptx
PDF
Paper PDF World Game (s) Great Redesign.pdf
PDF
Testing WebRTC applications at scale.pdf
PPTX
Internet___Basics___Styled_ presentation
PPT
Design_with_Watersergyerge45hrbgre4top (1).ppt
PDF
The Internet -By the Numbers, Sri Lanka Edition
PPTX
Introduction to Information and Communication Technology
PPTX
SAP Ariba Sourcing PPT for learning material
PPTX
Job_Card_System_Styled_lorem_ipsum_.pptx
PDF
WebRTC in SignalWire - troubleshooting media negotiation
PPTX
Digital Literacy And Online Safety on internet
PDF
SASE Traffic Flow - ZTNA Connector-1.pdf
PDF
Sims 4 Historia para lo sims 4 para jugar
PDF
Introduction to the IoT system, how the IoT system works
PDF
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
Unit-3 cyber security network security of internet system
CHE NAA, , b,mn,mblblblbljb jb jlb ,j , ,C PPT.pptx
Funds Management Learning Material for Beg
Module 1 - Cyber Law and Ethics 101.pptx
Slides PDF The World Game (s) Eco Economic Epochs.pdf
presentation_pfe-universite-molay-seltan.pptx
Paper PDF World Game (s) Great Redesign.pdf
Testing WebRTC applications at scale.pdf
Internet___Basics___Styled_ presentation
Design_with_Watersergyerge45hrbgre4top (1).ppt
The Internet -By the Numbers, Sri Lanka Edition
Introduction to Information and Communication Technology
SAP Ariba Sourcing PPT for learning material
Job_Card_System_Styled_lorem_ipsum_.pptx
WebRTC in SignalWire - troubleshooting media negotiation
Digital Literacy And Online Safety on internet
SASE Traffic Flow - ZTNA Connector-1.pdf
Sims 4 Historia para lo sims 4 para jugar
Introduction to the IoT system, how the IoT system works
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...

AWS SSA Webinar 13 - Getting started on AWS with Containers: Amazon ECS

  • 1. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Getting started on AWS with Amazon ECS O n l i n e W e b i n a r – 2 0 2 0 / 0 5 / 2 6 Cobus Bernard Sr Developer Advocate Amazon Web Services @cobusbernard cobusbernard cobusbernard
  • 2. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Agenda Creating a cluster Deploy using Amazon CodePipeline Using Amazon EC2 hosts vs AWS Fargate Capacity Providers Autoscaling using Spot and On-Demand Q&A
  • 3. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 4. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Infrastructure required Subnet Subnet VPC Availability Zone US-EAST-1A Subnet Subnet Availability Zone US-EAST-1C
  • 5. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 6. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. m4.xlarge Spot Weight of 1 m4.2xlarge Spot Weight of 2 m4.4xlarge On-Demand Weight of 4 Availability Zone 1 Availability Zone 2 Availability Zone 3 Different instance types contribute differently to total capacity Now: Spot, On-Demand, and RIs in a single ASG with weights
  • 7. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. API parameters "MixedInstancesPolicy": { "LaunchTemplate": { "LaunchTemplateSpecification": { "LaunchTemplateName": "MyLaunchTemplate" }, "Overrides": [ { "InstanceType": "m4.xLarge", "WeightedCapacity": "1" }, { "InstanceType": "m4.2xLarge", "WeightedCapacity": "2" }, { "InstanceType": "m4.4xLarge", "WeightedCapacity": "4" } ] }, "InstancesDistribution": { "OnDemandAllocationStrategy": "prioritized", "OnDemandBaseCapacity": 10, "OnDemandPercentageAboveBaseCapacity": 50, "SpotAllocationStrategy": “capacity-optimized", "SpotInstancePools": 2 } } AZ1 and AZ2 Desired Min Max On-Demand base 50% On-Demand 50% Spot Minimum On-Demand (10)
  • 8. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 9. ECS agent Docker agent OS Amazon Elastic Compute Cloud (Amazon EC2) instance ECS agent Docker agent OS EC2 instance ECS agent Docker agent OS EC2 instance Amazon Elastic Container Service (Amazon ECS)
  • 10. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 11. Thank you! © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved. Cobus Bernard Sr Developer Advocate Amazon Web Services @cobusbernard cobusbernard cobusbernard

Editor's Notes

  • #7: Introducing instance type weights Configure weight to scale in and out based on previous gen instances or vCPUs across multiple AZs Distribute Capacity evenly between availability zones for On-Demand and Spot separately
  • #8: <Including these to explain in more detail how this split / balance works> Overrides let you specify additional instance types to consider