Aws 1
Aws 1
Aws 1
June 2019
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
The new normal: companies are increasingly
global and products are increasingly digital
Source: Gartner
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
To maintain competitive advantage, digital
businesses must innovate as rapidly as possible
Experiment
Innovation
Flywheel
Ideas Feedback
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Architectural patterns
What changes
have to be made Operational model
in this new world? Software delivery
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Changes to the architectural patterns
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
When the impact of change is small,
release velocity can increase
Monolith Microservices
Does everything Do one thing
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Microservices architectures
API
Gateway
Account Account DB
Mobile
Lookup
client
IoT Shipping DB
Shipment
Query
Client
Store Front
Inventory DB
Web App
Inventory
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Query
Cloud-native architectures are
small pieces, loosely joined
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Changes to the operational model
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Isn’t all of this very hard now that
we have lots of pieces to operate?
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
AWS operational responsibility models
Less More
On-Premises Cloud
Storage Storage
S3
Messaging ESBs
Amazon MQ Kinesis SQS / SNS
Analytics
Hadoop Hadoop on EC2 EMR Elasticsearch Service Athena
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
What is serverless?
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
COMPUTE
AWS AWS
Lambda Fargate
DATA STORES
INTEGRATION
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Changes to the delivery of software
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
How do I develop and deploy
code in a serverless microservices
architecture?
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Microservice development lifecycle
developers services delivery pipelines
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
(microservices, 2 pizza teams)
Best practices
(governance, templates)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Containers are the best on ramp
towards modern applications
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Application environment components
Dependencies Configuration
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Different environments
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
It worked on my machine, why not in prod?
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Docker to the rescue
Runtime Engine
Dependencies
Code
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Four environments, same container
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Why are enterprises
adopting containers?
• Accelerate software development
• Build modern applications
• Automate operations at web scale
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Make AWS the BEST PLACE to run ANY
containerized applications
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Helping customers scale containers
of millions
of container instances
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Typical use cases
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
AWS container services landscape
Amazon Elastic
Management Amazon Elastic
Container Service
Deployment, Scheduling, Container Service
for Kubernetes
Scaling & Management of
containerized applications
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Amazon Elastic
Container Service
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Scheduling and Orchestration
ECS
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
McDonald’s Home Delivery: Why Amazon ECS?
Speed to market
Security
DevOps—CI / CD
Monitoring
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
AWS Fargate
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Without Fargate, you end up managing more than just containers
EC2 Instance
Docker ECS
OS
Agent Agent
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
- Patching and Upgrading OS, agents, etc.
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Amazon Elastic Container Service
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Amazon Elastic Container Service
AWS Fargate
run serverless containers
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
AWS Fargate
Managed by AWS
No EC2 Instances to provision, scale or manage
Elastic
Scale up & down seamlessly. Pay only for what you use
Your
containerized
applications
Integrated
with the AWS ecosystem: VPC Networking, Elastic Load
Balancing, IAM Permissions, CloudWatch and more
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Fully managed container environment
with AWS ECS + Fargate
Fargate runs tens of millions of containers for AWS customers every week
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
migrated ~850 applications running in ~5000 containers
to Fargate to reduce the undifferentiated heavy lifting
that came with managing Kubernetes
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
AWS Fargate customers
Product Hunt
Shimon Tolts
CTO, DATREE
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Amazon Elastic
Container Service for Kubernetes
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
What is Kubernetes?
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Community, contribution, choice
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
But where you run Kubernetes matters
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
—CNCF survey
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Kubectl mycluster.eks.amazonaws.com
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
EKS is Kubernetes certified
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
How are customer using Amazon EKS?
PaaS
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Customers adopting Kubernetes on AWS
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Customer example: Snap
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Amazon container services
AWS Fargate
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
THANK YOU! Questions?
https://aws.amazon.com/containers
@johlanger
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Rich partner ecosystem
Monitoring &
Foundation DevOps Logging Security Networking
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
New: AWS Cloud Map
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
New: AWS App Mesh
Observability & traffic control
Easily export logs, metrics, and traces
Client side traffic policies—circuit breaking, retries
Routes for deployments
Works across clusters and container services
Amazon ECS
Amazon EKS
Kubernetes on EC2
AWS Fargate (coming soon!)
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Container Customers
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Fidelity Investments
EKS Reference Customers: SNAP Inc
Appcard
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
EKS Reference Customer: Fidelity Investments
“We built the next generation of our PaaS using EKS for large
enterprise workloads. We manage thousands of applications
and have hundreds of DevOps teams.”
Amr Abdelhalem, Head of Cloud Architecture
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
EKS Reference Customer: SNAP
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
EKS Reference Customer: Appcard
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Turner Broadcasting
Fargate Reference Customers: 99Designs
Harry’s Razors
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Fargate Reference Customer: Turner Broadcasting
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Fargate Reference Customer: 99Designs
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Fargate Reference Customer: Harry’s Razors
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Introduction to Containers and
Docker
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Application environment components
Dependencies Configuration
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Different environments
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
It worked on my machine, why not in prod?
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
It worked on my machine, why not in prod?
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Docker to the rescue
Runtime Engine
Dependencies
Code
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Docker container image
W
rit
template to launch a container.
ab
le
ad
Container
d
ng
Start from base images that have
ix
ad
Image
d
your dependencies, add your References
n od
parent
custom code.
ej
image
U
Image
s
bu
nt
u
Docker file for easy, Base image
reproducible builds. bootfs
kernel
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Four environments, same container
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Virtual machine versus Docker
VM App 2
Hypervisor Docker
Host OS Host OS
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Container & Docker Benefits
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential
Reference Architectures (Informational)
Amazon ECS:
Rebalancing Amazon ECS Tasks using AWS Lambda
NGINX Reverse Proxy on Amazon EC2 Container Service
Java Microservices Deployed on EC2 Container Service
Amazon ECS Reference Architecture: Batch Processing
Node.js Microservices Deployed on EC2 Container Service
Amazon EC2 Container Service - Reference Architecture: Service Discovery to containers using CloudWatch Events,
Lambda and Route 53 private hosted zones
Service Discovery for AWS EC2 Container Service via DNS
Canary Blue/Green deployments on ECS
Blue/Green deployments on ECS
ECS Reference Architecture: Continuous Deployment
Amazon ECS Scheduler Driver to integrate Apache Mesos with ECS
AWS Fargate
Blue/Green deployments using Fargate
How to host an ASP.NET core application in AWS Fargate using Linux containers
Amazon EKS
CodeSuite - Continuous Deployment Reference Architecture for Kubernetes
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential