SlideShare una empresa de Scribd logo
1 de 36
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS re:INVENT
Case Study:
T h e 	 I n t e r n a l s 	 o f 	 A m a z o n . C o m ' s A r c h i t e c t u r e 	 T h a t 	 A l l o w s 	 i t 	 t o 	 S e c u r e l y 	
S c a l e 	 f o r 	 M i l l i o n s 	 o f 	 T r a n s a c t i o n s 	 p e r 	 S e c o n d 	 w i t h 	 L o w 	 L a t e n c y , 	 a n d 	 H i g h 	
A v a i l a b i l i t y
G a v i n J e w e l l
N o v e m b e r 3 0 , 2 0 1 7
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Security Availability Latency Cost
Guiding Principles Architecting Amazon.com
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Business at Internet Scale
Dynamic Content
15 PB/Mo
Requests per Day
40B ??
Hosted in
13 Countries
Architecture Evolution—Journey to AWS
P r e v i o u s
C i r c a 2 0 0 6
C u r r e n t
H y b r i d
F u t u r e
N a t i v e A W S
Open Source Kits
Relational Databases
On-Premises Hosting
Physical NetworkingIn-house Frameworks
Regional Datacenters
Amazon
CloudFront
AWS
WAF
Amazon
EC2
Amazon
DynamoDB
Amazon
S3
AWS
Lambda
AWS
Shield
Amazon
Route 53
Amazon
ECS
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
“Amazon.com is a novel application on top
of AWS primitives.”
§ Amazon CloudFront can reduce your latency for your global websites and services
§ Amazon Route 53 can be used to support your multiple origins
§ HTTPS re-directs at CloudFront can save you money
§ Use AWS WAF to efficiently drop unwanted traffic
§ Access the same experts at DDoS that we do with Shield Advanced
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Legacy On Premises
Compute
Server Server Server
Amazon.com Hybrid Architecture
On-Premises
Storage
AWS Compute AWS Storage
Amazon
DynamoDB
Amazon
S3
AWS
Lambda
Amazon
EC2
Amazon
ECS
Database Local DiskDesktop
Mobile
DNS
Amazon
Route 53
Security & Defense
Other CDN
CDN
Amazon
CloudFront
AWS Shield AWS WAF
Origin
Amazon VPC
Amazon EC2
Reverse Proxy
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
R o u t e 5 3
How did Amazon integrate
multiple origins and improve
availability?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Route 53 Features That Amazon Depends On
§ Self-service DNS management with APIs
§ Weighted routing policies allows Amazon
to split and control traffic
§ Flexible configuration for managing
CNAMES and complex routes
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Route 53—Amazon ARecord/CNAMEs
§ ARecord and CNAMEs are used
throughout our design
§ Route 53 features manage the
routing policies
§ CloudFront is configured to access
the origin via certificate
nslookup shows the A Record/CNAME hierarchy
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Route 53—A Record and CNAME config
ORIGINORIGIN
www.cdn.amazon.com.
(CNAME)
[NAME].[otherCDN].net.
(CNAME)
[NAME].cloudfront.net.
(CNAME)
[NAME].[origin].net.
(CNAME)
www.amazon.com
(A Record)
User
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Route 53—DNS Request Weighting
§ Creating a record set for the origin allows you to send
requests over the CDN in percentages
§ Configuration will “weight” requests to anything you
can configure a CNAME for
§ Creating a “weighted” routing policy for the origin
allows you to send traffic over the CDN or remove the
CDN without changing DNS
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Route 53—DNS Request Weighting
Support for different record set types;
Amazon uses CNAMEs
Custom settings for Time To Live (TTL) so
changes are predictable
CNAME to CDN Provider or Origin
“Weighted” routing policy allows
percentage granular control
Percentage of requests routed to the
CNAME in this “Record Set”
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How did Amazon
improve latency without
changing code? C l o u d F r o n t
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
§ POP locations reduce time to connect and round-trip time
§ Routing rules route between datacenters
§ Connection reuse
§ TLS/SSL termination at the edge
§ HTTP2 support (big latency wins!)
CloudFront Features Amazon Depends On
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon.com Page Latency
Direct to Origin
(No CloudFront)
CloudFront
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
CloudFront—Amazon.com Config
§ Path pattern adds routing logic for multiple fleets of servers
§ All HTTP requests are redirected to HTTPS at the edge
§ Certificates identify communication between CloudFront and origin
When request pattern
matches, requests are
routed to “origin” value
To ensure all user’s
requests are encrypted,
HTTP requests are
redirected to HTTPS
/dp/* Custom Detail Page Routing to ASINs
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How did Amazon become the MOST
TRUSTED brand in eCommerce?
W A F S h i e l d
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Protecting your site and your customers
§ DDoS is an Availability risk
§ Robot mitigation is a business choice
§ Customer data protection is a false choice;
it’s an extinction-level event for your customer trust
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon Response to Pingback Attacks
§ WordPress is an open source blog platform
§ It is widely used across the internet
§ Pingback is a supported feature many bloggers use for better SEO and visibility
A pingback is an XML-RPC request sent from Site A to Site B, when an author of Site
A writes a post that links to Site B. When Site B receives the notification signal, it
automatically goes back to Site A, checking for the existence of a live incoming link
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How Does a Pingback Attack Work?
Attacker distributes spoofed
XMLRPC pingback requests
with victims’ addresses
Legitimate WordPress (WP) sites
follow instructions and generate
many pingback requests
Target website is sent lots of
HTTP requests from multiple
legitimate WP websites
Attacker’s
Server
Abused
WP
Website
Abused
WP
Website
Abused
WP
Website
Target
Website
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Legacy On Prem
Compute
Server Server Server
Amazon.com Hybrid Architecture
On Prem Storage
AWS Compute AWS Storage
Amazon
DynamoDB
Amazon
S3
AWS
Lambda
Amazon
EC2
Amazon
ECS
Database Local DiskDesktop
Mobile
DNS
Amazon
Route 53
Security & Defense
Other CDN
CDN
Amazon
CloudFront
AWS Shield AWS WAF
Origin
Amazon VPC
Amazon EC2
Reverse Proxy
Pingback
Filter
x
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How to Identify a WP Pingback Request
A pingback request will use a user-agent string similar to:
WordPress/4.3.3; http://168.63.218.68; verifying pingback
from 185.130.5.209
WAF Rule
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS WAF—Did it Work?
Burst of pingback
traffic being filtered
by AWS WAF
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Shield Advanced
§ Amazon relies on their 24x7 DDoS response support using
advanced tools
§ They have many years of experience running the biggest events
of Amazon (Cyber Monday, Black Friday, Prime Day)
§ Amazon partners with Shield Advance each year to review and
update their preparation
§ Benefit from their experience and continual improvement
“It’s support from experts who’ve honed their skills defending Amazon.com.”
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon can use Lambda edge to politely respond to requests based on HTTP headers and provide
alternate content and response codes, protecting users and the website
Lambda@Edge with CloudFront
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Configure Lambda at the Edge
Create or edit a behavior that
will be triggered by the
“Viewer Request” event
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
CloudFront Field Level Encryption
§ An important part of our PCI compliance
§ A simple design encrypts data before most code runs
§ Protect credit cards and other sensitive data
§ CloudFront encrypts user-designated fields
§ Field Level Encryption is in preview today and will be
launching in Dec. 2017
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
CloudFront Field-Level Encryption
• Single Page Checkout
• Widgets for:
• Add a credit card/bank account number
• Add an address
• Shows what product(s) are being sold
• Computes taxes, shipping, promotions, total cost
• Apply for a new credit card
• Confirm and checkout
$1.40
$21.75
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
CloudFront Field Level Encryption
§ Multiple widgets from separate teams in Amazon on a shared
website environment
§ Only the credit card widget needs the credit card number
§ With Field Level Encryption, the rest of the widgets can’t see the
un-encrypted data
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
This all sounds complex to
manage; how does Amazon
do it safely at scale? A W S S D K
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Managing AWS Config at Scale
§ Amazon has a lot of AWS stuff…
§ Each site requires dozens of AWS objects
and configurations
§ Hundreds of sites and domains
§ Consistency is critical
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
How Do We Manage It All Consistently?
§ Write layers onto the AWS SDK to apply
changes and maintain consistency
§ Provide regular feedback to AWS to include
our features in future versions of SDK
§ Built governance systems to enforce safe
use of AWS
AWS SDK Code access to configuration APIs
S3 Hosts node.js code invoked by Lambda
Lambda Execution environment
DynamoDB Store config status
CloudTrail Audit logs of all activity
Built Using
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Code Sample: Command Line Interface
user$ ./AmazonNodeCLI.js --updateCDNWeight www.cdn.amazon.com
--withWeights '{"cf":90,”zz":10,”Origin":0}’
Record set we
are updating
Weights set on
the routing policy
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Code Sample: Command Line Interface
AWS SDK
Reference
Route 53 object
and changes
Validation to ensure
100% of requests are
accounted for
Returns values just
updated to CLI for
manual confirmation
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Wins by Using AWS
§ Latency improvements and stability on CloudFront as opposed to the origin
§ Reduction in the cost of DDoS insurance policies with WAF
§ Consistent use of best-practices via the AWS SDK
§ Field Level Encryption of customer’s data before it reaches the origin
§ Same Shield Advanced experts help the Amazon consumer business
§ Robot mitigation with Lambda@Edge
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Thank you!

Más contenido relacionado

La actualidad más candente

FinOps - AWS Cost and Operational Efficiency - Pop-up Loft Tel Aviv
FinOps - AWS Cost and Operational Efficiency - Pop-up Loft Tel AvivFinOps - AWS Cost and Operational Efficiency - Pop-up Loft Tel Aviv
FinOps - AWS Cost and Operational Efficiency - Pop-up Loft Tel AvivAmazon Web Services
 
AWS CodeCommit, CodeDeploy & CodePipeline
AWS CodeCommit, CodeDeploy & CodePipelineAWS CodeCommit, CodeDeploy & CodePipeline
AWS CodeCommit, CodeDeploy & CodePipelineJulien SIMON
 
Amazon OpenSearch Deep dive - 내부구조, 성능최적화 그리고 스케일링
Amazon OpenSearch Deep dive - 내부구조, 성능최적화 그리고 스케일링Amazon OpenSearch Deep dive - 내부구조, 성능최적화 그리고 스케일링
Amazon OpenSearch Deep dive - 내부구조, 성능최적화 그리고 스케일링Amazon Web Services Korea
 
20200818 AWS Black Belt Online Seminar AWS Shield Advanced
20200818 AWS Black Belt Online Seminar AWS Shield Advanced20200818 AWS Black Belt Online Seminar AWS Shield Advanced
20200818 AWS Black Belt Online Seminar AWS Shield AdvancedAmazon Web Services Japan
 
AWS로 게임의 공통 기능 개발하기! - 채민관, 김민석, 한준식 :: AWS Game Master 온라인 세미나 #2
AWS로 게임의 공통 기능 개발하기! - 채민관, 김민석, 한준식 :: AWS Game Master 온라인 세미나 #2AWS로 게임의 공통 기능 개발하기! - 채민관, 김민석, 한준식 :: AWS Game Master 온라인 세미나 #2
AWS로 게임의 공통 기능 개발하기! - 채민관, 김민석, 한준식 :: AWS Game Master 온라인 세미나 #2Amazon Web Services Korea
 
Enterprise Governance: Build Your AWS Landing Zone (ENT351-R1) - AWS re:Inven...
Enterprise Governance: Build Your AWS Landing Zone (ENT351-R1) - AWS re:Inven...Enterprise Governance: Build Your AWS Landing Zone (ENT351-R1) - AWS re:Inven...
Enterprise Governance: Build Your AWS Landing Zone (ENT351-R1) - AWS re:Inven...Amazon Web Services
 
AWS Webcast - Introduction to EBS
AWS Webcast - Introduction to EBS AWS Webcast - Introduction to EBS
AWS Webcast - Introduction to EBS Amazon Web Services
 
AWS Single Sign-On (SSO) 서비스 집중 탐구 - 윤석찬 :: AWS Unboxing 온라인 세미나
AWS Single Sign-On (SSO) 서비스 집중 탐구 - 윤석찬 :: AWS Unboxing 온라인 세미나AWS Single Sign-On (SSO) 서비스 집중 탐구 - 윤석찬 :: AWS Unboxing 온라인 세미나
AWS Single Sign-On (SSO) 서비스 집중 탐구 - 윤석찬 :: AWS Unboxing 온라인 세미나Amazon Web Services Korea
 
Best Practices for Encrypting Data on AWS
Best Practices for Encrypting Data on AWSBest Practices for Encrypting Data on AWS
Best Practices for Encrypting Data on AWSAmazon Web Services
 
AWSメンテナンス ElastiCache編
AWSメンテナンス ElastiCache編AWSメンテナンス ElastiCache編
AWSメンテナンス ElastiCache編Serverworks Co.,Ltd.
 
Amazon Web Services の本気がみたいか !? スピードと高可用性を両立したゲームインフラの構築と事例
Amazon Web Services の本気がみたいか !? スピードと高可用性を両立したゲームインフラの構築と事例Amazon Web Services の本気がみたいか !? スピードと高可用性を両立したゲームインフラの構築と事例
Amazon Web Services の本気がみたいか !? スピードと高可用性を両立したゲームインフラの構築と事例Amazon Web Services Japan
 
Introduction to AWS Enterprise Support
Introduction to AWS Enterprise SupportIntroduction to AWS Enterprise Support
Introduction to AWS Enterprise SupportAmazon Web Services
 
DEV204_Debugging Modern Applications Introduction to AWS X-Ray
DEV204_Debugging Modern Applications Introduction to AWS X-RayDEV204_Debugging Modern Applications Introduction to AWS X-Ray
DEV204_Debugging Modern Applications Introduction to AWS X-RayAmazon Web Services
 

La actualidad más candente (20)

FinOps - AWS Cost and Operational Efficiency - Pop-up Loft Tel Aviv
FinOps - AWS Cost and Operational Efficiency - Pop-up Loft Tel AvivFinOps - AWS Cost and Operational Efficiency - Pop-up Loft Tel Aviv
FinOps - AWS Cost and Operational Efficiency - Pop-up Loft Tel Aviv
 
AWS WAF - A Web App Firewall
AWS WAF - A Web App FirewallAWS WAF - A Web App Firewall
AWS WAF - A Web App Firewall
 
20150109 - AWS BlackBelt - IAM (Korean)
20150109 - AWS BlackBelt - IAM (Korean)20150109 - AWS BlackBelt - IAM (Korean)
20150109 - AWS BlackBelt - IAM (Korean)
 
AWS CodeCommit, CodeDeploy & CodePipeline
AWS CodeCommit, CodeDeploy & CodePipelineAWS CodeCommit, CodeDeploy & CodePipeline
AWS CodeCommit, CodeDeploy & CodePipeline
 
AWS Simple Storage Service (s3)
AWS Simple Storage Service (s3) AWS Simple Storage Service (s3)
AWS Simple Storage Service (s3)
 
AWS Security by Design
AWS Security by Design AWS Security by Design
AWS Security by Design
 
Amazon OpenSearch Deep dive - 내부구조, 성능최적화 그리고 스케일링
Amazon OpenSearch Deep dive - 내부구조, 성능최적화 그리고 스케일링Amazon OpenSearch Deep dive - 내부구조, 성능최적화 그리고 스케일링
Amazon OpenSearch Deep dive - 내부구조, 성능최적화 그리고 스케일링
 
20200818 AWS Black Belt Online Seminar AWS Shield Advanced
20200818 AWS Black Belt Online Seminar AWS Shield Advanced20200818 AWS Black Belt Online Seminar AWS Shield Advanced
20200818 AWS Black Belt Online Seminar AWS Shield Advanced
 
AWS로 게임의 공통 기능 개발하기! - 채민관, 김민석, 한준식 :: AWS Game Master 온라인 세미나 #2
AWS로 게임의 공통 기능 개발하기! - 채민관, 김민석, 한준식 :: AWS Game Master 온라인 세미나 #2AWS로 게임의 공통 기능 개발하기! - 채민관, 김민석, 한준식 :: AWS Game Master 온라인 세미나 #2
AWS로 게임의 공통 기능 개발하기! - 채민관, 김민석, 한준식 :: AWS Game Master 온라인 세미나 #2
 
Enterprise Governance: Build Your AWS Landing Zone (ENT351-R1) - AWS re:Inven...
Enterprise Governance: Build Your AWS Landing Zone (ENT351-R1) - AWS re:Inven...Enterprise Governance: Build Your AWS Landing Zone (ENT351-R1) - AWS re:Inven...
Enterprise Governance: Build Your AWS Landing Zone (ENT351-R1) - AWS re:Inven...
 
Introduction to AWS Security
Introduction to AWS SecurityIntroduction to AWS Security
Introduction to AWS Security
 
ElastiCache & Redis
ElastiCache & RedisElastiCache & Redis
ElastiCache & Redis
 
AWS Webcast - Introduction to EBS
AWS Webcast - Introduction to EBS AWS Webcast - Introduction to EBS
AWS Webcast - Introduction to EBS
 
AWS Single Sign-On (SSO) 서비스 집중 탐구 - 윤석찬 :: AWS Unboxing 온라인 세미나
AWS Single Sign-On (SSO) 서비스 집중 탐구 - 윤석찬 :: AWS Unboxing 온라인 세미나AWS Single Sign-On (SSO) 서비스 집중 탐구 - 윤석찬 :: AWS Unboxing 온라인 세미나
AWS Single Sign-On (SSO) 서비스 집중 탐구 - 윤석찬 :: AWS Unboxing 온라인 세미나
 
Best Practices for Encrypting Data on AWS
Best Practices for Encrypting Data on AWSBest Practices for Encrypting Data on AWS
Best Practices for Encrypting Data on AWS
 
AWSメンテナンス ElastiCache編
AWSメンテナンス ElastiCache編AWSメンテナンス ElastiCache編
AWSメンテナンス ElastiCache編
 
Amazon Web Services の本気がみたいか !? スピードと高可用性を両立したゲームインフラの構築と事例
Amazon Web Services の本気がみたいか !? スピードと高可用性を両立したゲームインフラの構築と事例Amazon Web Services の本気がみたいか !? スピードと高可用性を両立したゲームインフラの構築と事例
Amazon Web Services の本気がみたいか !? スピードと高可用性を両立したゲームインフラの構築と事例
 
AWS Security Hub
AWS Security HubAWS Security Hub
AWS Security Hub
 
Introduction to AWS Enterprise Support
Introduction to AWS Enterprise SupportIntroduction to AWS Enterprise Support
Introduction to AWS Enterprise Support
 
DEV204_Debugging Modern Applications Introduction to AWS X-Ray
DEV204_Debugging Modern Applications Introduction to AWS X-RayDEV204_Debugging Modern Applications Introduction to AWS X-Ray
DEV204_Debugging Modern Applications Introduction to AWS X-Ray
 

Similar a Case Study: The internals of Amazon.com's architecture that allows it to securely scale for millions of transactions per second with low latency, and high availability - CTD305 - re:Invent 2017

SRV312_Taking Serverless to the Edge
SRV312_Taking Serverless to the EdgeSRV312_Taking Serverless to the Edge
SRV312_Taking Serverless to the EdgeAmazon Web Services
 
Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017
Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017
Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017Amazon Web Services
 
Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017
Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017
Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017Amazon Web Services
 
Introduction to Amazon CloudFront and AWS Lambda@Edge - CTD201 - re:Invent 2017
Introduction to Amazon CloudFront and AWS Lambda@Edge - CTD201 - re:Invent 2017Introduction to Amazon CloudFront and AWS Lambda@Edge - CTD201 - re:Invent 2017
Introduction to Amazon CloudFront and AWS Lambda@Edge - CTD201 - re:Invent 2017Amazon Web Services
 
CTD201_Introduction to Amazon CloudFront and AWS Lambda@Edge
CTD201_Introduction to Amazon CloudFront and AWS Lambda@EdgeCTD201_Introduction to Amazon CloudFront and AWS Lambda@Edge
CTD201_Introduction to Amazon CloudFront and AWS Lambda@EdgeAmazon Web Services
 
AWS Edge Media Services
AWS Edge Media ServicesAWS Edge Media Services
AWS Edge Media ServicesM5sime
 
I Want to Analyze and Visualize Website Access Logs, but Why Do I Need Server...
I Want to Analyze and Visualize Website Access Logs, but Why Do I Need Server...I Want to Analyze and Visualize Website Access Logs, but Why Do I Need Server...
I Want to Analyze and Visualize Website Access Logs, but Why Do I Need Server...Amazon Web Services
 
ARC306_High Resiliency & Availability Of Online Entertainment Communities Usi...
ARC306_High Resiliency & Availability Of Online Entertainment Communities Usi...ARC306_High Resiliency & Availability Of Online Entertainment Communities Usi...
ARC306_High Resiliency & Availability Of Online Entertainment Communities Usi...Amazon Web Services
 
NEW LAUNCH! AWS PrivateLink Deep Dive - NET310 - re:Invent 2017
NEW LAUNCH! AWS PrivateLink Deep Dive - NET310 - re:Invent 2017NEW LAUNCH! AWS PrivateLink Deep Dive - NET310 - re:Invent 2017
NEW LAUNCH! AWS PrivateLink Deep Dive - NET310 - re:Invent 2017Amazon Web Services
 
Introduction to Serverless Computing and AWS Lambda - AWS IL Meetup
Introduction to Serverless Computing and AWS Lambda - AWS IL MeetupIntroduction to Serverless Computing and AWS Lambda - AWS IL Meetup
Introduction to Serverless Computing and AWS Lambda - AWS IL MeetupBoaz Ziniman
 
ARC325_Managing Multiple AWS Accounts at Scale
ARC325_Managing Multiple AWS Accounts at ScaleARC325_Managing Multiple AWS Accounts at Scale
ARC325_Managing Multiple AWS Accounts at ScaleAmazon Web Services
 
Intro to Threat Detection and Remediation on AWS
Intro to Threat Detection and Remediation on AWSIntro to Threat Detection and Remediation on AWS
Intro to Threat Detection and Remediation on AWSAmazon Web Services
 
Intro to threat_detection_and_remediation on aws
Intro to threat_detection_and_remediation on awsIntro to threat_detection_and_remediation on aws
Intro to threat_detection_and_remediation on awsBela Sojina MBA, PMP
 
AWS X-Ray: Debugging Applications at Scale - AWS Online Tech Talks
AWS X-Ray: Debugging Applications at Scale - AWS Online Tech TalksAWS X-Ray: Debugging Applications at Scale - AWS Online Tech Talks
AWS X-Ray: Debugging Applications at Scale - AWS Online Tech TalksAmazon Web Services
 
Staying Armed with AWS Cloud HSM and AWS WAF - AWS Public Sector Summit Singa...
Staying Armed with AWS Cloud HSM and AWS WAF - AWS Public Sector Summit Singa...Staying Armed with AWS Cloud HSM and AWS WAF - AWS Public Sector Summit Singa...
Staying Armed with AWS Cloud HSM and AWS WAF - AWS Public Sector Summit Singa...Amazon Web Services
 
AWS Security State of the Union - SID326 - re:Invent 2017
AWS Security State of the Union - SID326 - re:Invent 2017AWS Security State of the Union - SID326 - re:Invent 2017
AWS Security State of the Union - SID326 - re:Invent 2017Amazon Web Services
 
Scale Website dan Mobile Applications Anda di AWS hingga 10 juta pengguna
Scale Website dan Mobile Applications Anda di AWS hingga 10 juta penggunaScale Website dan Mobile Applications Anda di AWS hingga 10 juta pengguna
Scale Website dan Mobile Applications Anda di AWS hingga 10 juta penggunaAmazon Web Services
 
Journey Towards Scaling Your API to 10 Million Users
Journey Towards Scaling Your API to 10 Million UsersJourney Towards Scaling Your API to 10 Million Users
Journey Towards Scaling Your API to 10 Million UsersAdrian Hornsby
 
Security, Risk and Compliance of Your Cloud Journey - Tel Aviv Summit 2018
Security, Risk and Compliance of Your Cloud Journey - Tel Aviv Summit 2018Security, Risk and Compliance of Your Cloud Journey - Tel Aviv Summit 2018
Security, Risk and Compliance of Your Cloud Journey - Tel Aviv Summit 2018Amazon Web Services
 
SRV331_Build a Multi-Region Serverless Application for Resilience and High Av...
SRV331_Build a Multi-Region Serverless Application for Resilience and High Av...SRV331_Build a Multi-Region Serverless Application for Resilience and High Av...
SRV331_Build a Multi-Region Serverless Application for Resilience and High Av...Amazon Web Services
 

Similar a Case Study: The internals of Amazon.com's architecture that allows it to securely scale for millions of transactions per second with low latency, and high availability - CTD305 - re:Invent 2017 (20)

SRV312_Taking Serverless to the Edge
SRV312_Taking Serverless to the EdgeSRV312_Taking Serverless to the Edge
SRV312_Taking Serverless to the Edge
 
Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017
Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017
Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017
 
Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017
Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017
Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017
 
Introduction to Amazon CloudFront and AWS Lambda@Edge - CTD201 - re:Invent 2017
Introduction to Amazon CloudFront and AWS Lambda@Edge - CTD201 - re:Invent 2017Introduction to Amazon CloudFront and AWS Lambda@Edge - CTD201 - re:Invent 2017
Introduction to Amazon CloudFront and AWS Lambda@Edge - CTD201 - re:Invent 2017
 
CTD201_Introduction to Amazon CloudFront and AWS Lambda@Edge
CTD201_Introduction to Amazon CloudFront and AWS Lambda@EdgeCTD201_Introduction to Amazon CloudFront and AWS Lambda@Edge
CTD201_Introduction to Amazon CloudFront and AWS Lambda@Edge
 
AWS Edge Media Services
AWS Edge Media ServicesAWS Edge Media Services
AWS Edge Media Services
 
I Want to Analyze and Visualize Website Access Logs, but Why Do I Need Server...
I Want to Analyze and Visualize Website Access Logs, but Why Do I Need Server...I Want to Analyze and Visualize Website Access Logs, but Why Do I Need Server...
I Want to Analyze and Visualize Website Access Logs, but Why Do I Need Server...
 
ARC306_High Resiliency & Availability Of Online Entertainment Communities Usi...
ARC306_High Resiliency & Availability Of Online Entertainment Communities Usi...ARC306_High Resiliency & Availability Of Online Entertainment Communities Usi...
ARC306_High Resiliency & Availability Of Online Entertainment Communities Usi...
 
NEW LAUNCH! AWS PrivateLink Deep Dive - NET310 - re:Invent 2017
NEW LAUNCH! AWS PrivateLink Deep Dive - NET310 - re:Invent 2017NEW LAUNCH! AWS PrivateLink Deep Dive - NET310 - re:Invent 2017
NEW LAUNCH! AWS PrivateLink Deep Dive - NET310 - re:Invent 2017
 
Introduction to Serverless Computing and AWS Lambda - AWS IL Meetup
Introduction to Serverless Computing and AWS Lambda - AWS IL MeetupIntroduction to Serverless Computing and AWS Lambda - AWS IL Meetup
Introduction to Serverless Computing and AWS Lambda - AWS IL Meetup
 
ARC325_Managing Multiple AWS Accounts at Scale
ARC325_Managing Multiple AWS Accounts at ScaleARC325_Managing Multiple AWS Accounts at Scale
ARC325_Managing Multiple AWS Accounts at Scale
 
Intro to Threat Detection and Remediation on AWS
Intro to Threat Detection and Remediation on AWSIntro to Threat Detection and Remediation on AWS
Intro to Threat Detection and Remediation on AWS
 
Intro to threat_detection_and_remediation on aws
Intro to threat_detection_and_remediation on awsIntro to threat_detection_and_remediation on aws
Intro to threat_detection_and_remediation on aws
 
AWS X-Ray: Debugging Applications at Scale - AWS Online Tech Talks
AWS X-Ray: Debugging Applications at Scale - AWS Online Tech TalksAWS X-Ray: Debugging Applications at Scale - AWS Online Tech Talks
AWS X-Ray: Debugging Applications at Scale - AWS Online Tech Talks
 
Staying Armed with AWS Cloud HSM and AWS WAF - AWS Public Sector Summit Singa...
Staying Armed with AWS Cloud HSM and AWS WAF - AWS Public Sector Summit Singa...Staying Armed with AWS Cloud HSM and AWS WAF - AWS Public Sector Summit Singa...
Staying Armed with AWS Cloud HSM and AWS WAF - AWS Public Sector Summit Singa...
 
AWS Security State of the Union - SID326 - re:Invent 2017
AWS Security State of the Union - SID326 - re:Invent 2017AWS Security State of the Union - SID326 - re:Invent 2017
AWS Security State of the Union - SID326 - re:Invent 2017
 
Scale Website dan Mobile Applications Anda di AWS hingga 10 juta pengguna
Scale Website dan Mobile Applications Anda di AWS hingga 10 juta penggunaScale Website dan Mobile Applications Anda di AWS hingga 10 juta pengguna
Scale Website dan Mobile Applications Anda di AWS hingga 10 juta pengguna
 
Journey Towards Scaling Your API to 10 Million Users
Journey Towards Scaling Your API to 10 Million UsersJourney Towards Scaling Your API to 10 Million Users
Journey Towards Scaling Your API to 10 Million Users
 
Security, Risk and Compliance of Your Cloud Journey - Tel Aviv Summit 2018
Security, Risk and Compliance of Your Cloud Journey - Tel Aviv Summit 2018Security, Risk and Compliance of Your Cloud Journey - Tel Aviv Summit 2018
Security, Risk and Compliance of Your Cloud Journey - Tel Aviv Summit 2018
 
SRV331_Build a Multi-Region Serverless Application for Resilience and High Av...
SRV331_Build a Multi-Region Serverless Application for Resilience and High Av...SRV331_Build a Multi-Region Serverless Application for Resilience and High Av...
SRV331_Build a Multi-Region Serverless Application for Resilience and High Av...
 

Más de Amazon Web Services

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Amazon Web Services
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Amazon Web Services
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateAmazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSAmazon Web Services
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Amazon Web Services
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Amazon Web Services
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...Amazon Web Services
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsAmazon Web Services
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareAmazon Web Services
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSAmazon Web Services
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAmazon Web Services
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareAmazon Web Services
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWSAmazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckAmazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without serversAmazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...Amazon Web Services
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceAmazon Web Services
 

Más de Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

Case Study: The internals of Amazon.com's architecture that allows it to securely scale for millions of transactions per second with low latency, and high availability - CTD305 - re:Invent 2017

  • 1. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS re:INVENT Case Study: T h e I n t e r n a l s o f A m a z o n . C o m ' s A r c h i t e c t u r e T h a t A l l o w s i t t o S e c u r e l y S c a l e f o r M i l l i o n s o f T r a n s a c t i o n s p e r S e c o n d w i t h L o w L a t e n c y , a n d H i g h A v a i l a b i l i t y G a v i n J e w e l l N o v e m b e r 3 0 , 2 0 1 7
  • 2. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Security Availability Latency Cost Guiding Principles Architecting Amazon.com
  • 3. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Business at Internet Scale Dynamic Content 15 PB/Mo Requests per Day 40B ?? Hosted in 13 Countries
  • 4. Architecture Evolution—Journey to AWS P r e v i o u s C i r c a 2 0 0 6 C u r r e n t H y b r i d F u t u r e N a t i v e A W S Open Source Kits Relational Databases On-Premises Hosting Physical NetworkingIn-house Frameworks Regional Datacenters Amazon CloudFront AWS WAF Amazon EC2 Amazon DynamoDB Amazon S3 AWS Lambda AWS Shield Amazon Route 53 Amazon ECS
  • 5. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. “Amazon.com is a novel application on top of AWS primitives.” § Amazon CloudFront can reduce your latency for your global websites and services § Amazon Route 53 can be used to support your multiple origins § HTTPS re-directs at CloudFront can save you money § Use AWS WAF to efficiently drop unwanted traffic § Access the same experts at DDoS that we do with Shield Advanced
  • 6. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Legacy On Premises Compute Server Server Server Amazon.com Hybrid Architecture On-Premises Storage AWS Compute AWS Storage Amazon DynamoDB Amazon S3 AWS Lambda Amazon EC2 Amazon ECS Database Local DiskDesktop Mobile DNS Amazon Route 53 Security & Defense Other CDN CDN Amazon CloudFront AWS Shield AWS WAF Origin Amazon VPC Amazon EC2 Reverse Proxy
  • 7. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. R o u t e 5 3 How did Amazon integrate multiple origins and improve availability?
  • 8. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Route 53 Features That Amazon Depends On § Self-service DNS management with APIs § Weighted routing policies allows Amazon to split and control traffic § Flexible configuration for managing CNAMES and complex routes
  • 9. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Route 53—Amazon ARecord/CNAMEs § ARecord and CNAMEs are used throughout our design § Route 53 features manage the routing policies § CloudFront is configured to access the origin via certificate nslookup shows the A Record/CNAME hierarchy
  • 10. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Route 53—A Record and CNAME config ORIGINORIGIN www.cdn.amazon.com. (CNAME) [NAME].[otherCDN].net. (CNAME) [NAME].cloudfront.net. (CNAME) [NAME].[origin].net. (CNAME) www.amazon.com (A Record) User
  • 11. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Route 53—DNS Request Weighting § Creating a record set for the origin allows you to send requests over the CDN in percentages § Configuration will “weight” requests to anything you can configure a CNAME for § Creating a “weighted” routing policy for the origin allows you to send traffic over the CDN or remove the CDN without changing DNS
  • 12. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Route 53—DNS Request Weighting Support for different record set types; Amazon uses CNAMEs Custom settings for Time To Live (TTL) so changes are predictable CNAME to CDN Provider or Origin “Weighted” routing policy allows percentage granular control Percentage of requests routed to the CNAME in this “Record Set”
  • 13. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. How did Amazon improve latency without changing code? C l o u d F r o n t
  • 14. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. § POP locations reduce time to connect and round-trip time § Routing rules route between datacenters § Connection reuse § TLS/SSL termination at the edge § HTTP2 support (big latency wins!) CloudFront Features Amazon Depends On
  • 15. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon.com Page Latency Direct to Origin (No CloudFront) CloudFront
  • 16. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. CloudFront—Amazon.com Config § Path pattern adds routing logic for multiple fleets of servers § All HTTP requests are redirected to HTTPS at the edge § Certificates identify communication between CloudFront and origin When request pattern matches, requests are routed to “origin” value To ensure all user’s requests are encrypted, HTTP requests are redirected to HTTPS /dp/* Custom Detail Page Routing to ASINs
  • 17. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. How did Amazon become the MOST TRUSTED brand in eCommerce? W A F S h i e l d
  • 18. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Protecting your site and your customers § DDoS is an Availability risk § Robot mitigation is a business choice § Customer data protection is a false choice; it’s an extinction-level event for your customer trust
  • 19. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Response to Pingback Attacks § WordPress is an open source blog platform § It is widely used across the internet § Pingback is a supported feature many bloggers use for better SEO and visibility A pingback is an XML-RPC request sent from Site A to Site B, when an author of Site A writes a post that links to Site B. When Site B receives the notification signal, it automatically goes back to Site A, checking for the existence of a live incoming link
  • 20. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. How Does a Pingback Attack Work? Attacker distributes spoofed XMLRPC pingback requests with victims’ addresses Legitimate WordPress (WP) sites follow instructions and generate many pingback requests Target website is sent lots of HTTP requests from multiple legitimate WP websites Attacker’s Server Abused WP Website Abused WP Website Abused WP Website Target Website
  • 21. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Legacy On Prem Compute Server Server Server Amazon.com Hybrid Architecture On Prem Storage AWS Compute AWS Storage Amazon DynamoDB Amazon S3 AWS Lambda Amazon EC2 Amazon ECS Database Local DiskDesktop Mobile DNS Amazon Route 53 Security & Defense Other CDN CDN Amazon CloudFront AWS Shield AWS WAF Origin Amazon VPC Amazon EC2 Reverse Proxy Pingback Filter x
  • 22. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. How to Identify a WP Pingback Request A pingback request will use a user-agent string similar to: WordPress/4.3.3; http://168.63.218.68; verifying pingback from 185.130.5.209 WAF Rule
  • 23. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS WAF—Did it Work? Burst of pingback traffic being filtered by AWS WAF
  • 24. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Shield Advanced § Amazon relies on their 24x7 DDoS response support using advanced tools § They have many years of experience running the biggest events of Amazon (Cyber Monday, Black Friday, Prime Day) § Amazon partners with Shield Advance each year to review and update their preparation § Benefit from their experience and continual improvement “It’s support from experts who’ve honed their skills defending Amazon.com.”
  • 25. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon can use Lambda edge to politely respond to requests based on HTTP headers and provide alternate content and response codes, protecting users and the website Lambda@Edge with CloudFront
  • 26. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Configure Lambda at the Edge Create or edit a behavior that will be triggered by the “Viewer Request” event
  • 27. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. CloudFront Field Level Encryption § An important part of our PCI compliance § A simple design encrypts data before most code runs § Protect credit cards and other sensitive data § CloudFront encrypts user-designated fields § Field Level Encryption is in preview today and will be launching in Dec. 2017
  • 28. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. CloudFront Field-Level Encryption • Single Page Checkout • Widgets for: • Add a credit card/bank account number • Add an address • Shows what product(s) are being sold • Computes taxes, shipping, promotions, total cost • Apply for a new credit card • Confirm and checkout $1.40 $21.75
  • 29. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. CloudFront Field Level Encryption § Multiple widgets from separate teams in Amazon on a shared website environment § Only the credit card widget needs the credit card number § With Field Level Encryption, the rest of the widgets can’t see the un-encrypted data
  • 30. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. This all sounds complex to manage; how does Amazon do it safely at scale? A W S S D K
  • 31. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Managing AWS Config at Scale § Amazon has a lot of AWS stuff… § Each site requires dozens of AWS objects and configurations § Hundreds of sites and domains § Consistency is critical
  • 32. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. How Do We Manage It All Consistently? § Write layers onto the AWS SDK to apply changes and maintain consistency § Provide regular feedback to AWS to include our features in future versions of SDK § Built governance systems to enforce safe use of AWS AWS SDK Code access to configuration APIs S3 Hosts node.js code invoked by Lambda Lambda Execution environment DynamoDB Store config status CloudTrail Audit logs of all activity Built Using
  • 33. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Code Sample: Command Line Interface user$ ./AmazonNodeCLI.js --updateCDNWeight www.cdn.amazon.com --withWeights '{"cf":90,”zz":10,”Origin":0}’ Record set we are updating Weights set on the routing policy
  • 34. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Code Sample: Command Line Interface AWS SDK Reference Route 53 object and changes Validation to ensure 100% of requests are accounted for Returns values just updated to CLI for manual confirmation
  • 35. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Wins by Using AWS § Latency improvements and stability on CloudFront as opposed to the origin § Reduction in the cost of DDoS insurance policies with WAF § Consistent use of best-practices via the AWS SDK § Field Level Encryption of customer’s data before it reaches the origin § Same Shield Advanced experts help the Amazon consumer business § Robot mitigation with Lambda@Edge
  • 36. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Thank you!