accelerating content with amazon cloudfront and...
TRANSCRIPT
![Page 1: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/1.jpg)
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Lee Atkinson, Solutions Architect, Amazon Web ServicesChris West, DevOps Lead, Travelex Ltd.
28 June 2017
Accelerating Content, APIs and Applications with Amazon CloudFront
and Lambda@Edge
![Page 2: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/2.jpg)
What to Expect from the Session
• Amazon CloudFront and AWS Lambda• Lambda@Edge• Customer: Travelex DevOps and Lambda@Edge• Getting started with Lambda@Edge
![Page 3: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/3.jpg)
AWS Core Services
Compute
Storage
Database
Edge
Edge Services: A Core Infrastructure Component
Users Can Access Application
Resources Directly
Customer Application
Edge services directly accessed
include CloudFront, Route 53, AWS
WAF, AWS Shield
![Page 4: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/4.jpg)
AWS Core ServicesEdge Services: A Core Infrastructure Component
Users Can Access Application Resources Through The Edge to Secure, Scale, and
Optimize Applications
Compute
Storage
Database
Edge
Customer Application
AND/OR
![Page 5: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/5.jpg)
AWS Edge:Global network of Points of Presence (POPs) on the backbone of the Internet
![Page 6: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/6.jpg)
77 Edge Locations11 Regional Edge Caches48 cities21 countries5 continents
77 Edge Locations + 11 Regional Edge Caches
![Page 7: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/7.jpg)
Amazon CloudFront: Global Content Delivery Network• Accelerate your web applications and APIs• Cache content (images, video, scripts, CSS)• Massively scalable• Highly secure• Self service• Priced to minimize cost
![Page 8: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/8.jpg)
Dynamic
StaticVideo
User Input
SSL/TLS
CloudFront delivers ALL types of content
![Page 9: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/9.jpg)
Without changing your backend…
ALB / ELB
Dynamic Content
Amazon EC2
Static Content
Amazon S3 Custom Origin
OR
OR
Custom OriginAmazon CloudFront
example.com
*.jpg
*.php
![Page 10: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/10.jpg)
AWS Lambda: Serverless Computing
![Page 11: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/11.jpg)
AWS Lambda: Serverless computing
Run code without servers. Pay only for the compute time you consume. Be happy.
Triggered by events or called from APIs:• PUT to an Amazon S3 bucket• Updates to Amazon DynamoDB table• Call to an Amazon API Gateway endpoint• Mobile app back-end call• CloudFront requests• And many more…
Makes it easy to:• Perform real-time data processing• Build scalable back-end services• Glue and choreograph systems
![Page 12: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/12.jpg)
Benefits of AWS Lambda
No servers to manage
Continuous scaling
Never pay for idle – no cold servers
![Page 13: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/13.jpg)
AWS Lambda@Edge: Serverless Edge Computing
![Page 14: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/14.jpg)
Introducing Lambda@Edge
• Lambda@Edge is an extension of AWS Lambda that allows you to run Node.js code at AWS global edge locations.
• Bring your own code to the edge and customize your content very close to your users, improving end user experience.
No servers to manage
Continuous scaling
Never pay for idle – no cold servers
Globally distributed
![Page 15: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/15.jpg)
Accelerating content with CloudFront
![Page 16: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/16.jpg)
CloudFront Triggers for Lambda@EdgeFunctions
![Page 17: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/17.jpg)
CloudFront Triggers for Lambda@EdgeFunctions
![Page 18: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/18.jpg)
Write once, run everywhere
![Page 19: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/19.jpg)
What can Lambda@Edge Do?
![Page 20: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/20.jpg)
• User Properties – Identify a user’s location or what device they are using to select content accordingly (eg., smaller images for mobile vs desktop, selecting page language based on location)
• Client Device properties - Delete or modify headers to match protocols required by legacy end user devices
• Legacy TVs, networked printers
Content Customization
![Page 21: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/21.jpg)
Visitor Validation
• Handing bots• Detect search engine bots and filter this
traffic from origin servers by displaying a Captcha page
• Confirm valid sessions• View user-agent to confirm legitimacy of
request and add an access-control allow header accordingly
• Validate access token to confirm authentication status
![Page 22: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/22.jpg)
URL Manipulation
• Ad content - Rewrite URL from request.jpg to request.html to show image with contextual information and relevant ads
• Pretty URLs – Avoid revealing your origin directory structure and introducing “ugly” complexity to URL’s
![Page 23: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/23.jpg)
A/B Testing
• “Flip a coin” to select a version of content displayed to each user
• Set cookies to ensure that users continue to see the right versions of content
![Page 24: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/24.jpg)
Demo Time!
![Page 25: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/25.jpg)
Two demo functions
1. URL rewriting (Origin Request)2. Response generation (Viewer Request)
![Page 26: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/26.jpg)
Travelex DevOpsand
Lambda@Edge
26
![Page 27: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/27.jpg)
Travelex at a glance
FirstopenedinLondonin1976,Travelexisaworldleadingforeignexchangeexpertwithpresencein29countries,agrowingonlineandmobileforeignexchangeplatformandanetworkof1,000ATMsand1,500stores
1980
27
1990 2000 2010
1976:Firststoreopensin
SouthamptonRow,London
1982:FirstferryoutletopensontheP&Oferryserving
Rotterdam
1984:Firstoverseasbranchopensinthe
Netherlands,NorthSeaterminal,Rotterdam
1986:Firstnon-bankFXprovideratHeathrowT4
1989:FirstbranchesopenedintheUSA,inJFK
airport
1990:FirstbranchesopenedinAustralia,Brisbane(Domestic
terminal)
2016:40th anniversary
2015:Firstexclusiveforeignexchangeprovider
atHeathrowairport
2015:TravelexsoldtoDrShettyandMrSaeedBin
Butti
2014:Travelexembarksondigitaltransformation
strategy
2004:TravelexopensinChina
2003:TravelexopensinIndiaandtheMiddleEast
(inOman)
2003:TravelexpartnerswiththeNationalTheatretolaunchTravelexticket
season
2001:TravelexacquiresThomasCookFS
1999:TravelexacquiresBarclay’sFXintheUK–
startofvault
1995:AbbeyNationalbuysa33%stakeof
Travelex– takeoveroftheirFX
2017:TravelexWirelaunches
![Page 28: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/28.jpg)
Travelex DevOps + Lambda@Edge
Thingswedo• Wireinternationalpayments• White-labelpaymentsservices• FCAe-moneylicence• Backendformobileapps• Dataengineeringstuff• Jenkins(somewhatinevitably)
DevOpsatTravelex
28
Thingsthatareimportanttous• Security• Compliance• Resilience• Global• CheaptoRun• MadewithCoolStuff
![Page 29: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/29.jpg)
Travelex DevOps + Lambda@Edge
Securityconsiderations🔒 Encryptionin-flightusingSSL/TLS🔒 Hostingenvironmenthardeningandsecuritycontrols🔒 Client-sidesecurity(e.g.XSS,click-jacking,CSRF,...)🔒 DoS andDDoS
(...anddon’tforgetcomplianceconsiderations)✅ Logsandaudittrail✅ Accesscontrol✅ +about300controlpoints,dependingonyourregimeofchoice
Let’sbuildasimple,secureweb-site
29
![Page 30: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/30.jpg)
Travelex DevOps + Lambda@Edge
Asimple,secureweb-site;on-prem(orEC2)
30
• HAfirewalls• HAloadbalancer+WAF• HA,hardenedweb-servers• PKIforSSL/TLScertificates• Hostmonitoring• ...andaseconddeployment
somewherebecauseit’sslowinAus
+sysadmins;networkadmins;infosec
![Page 31: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/31.jpg)
Travelex DevOps + Lambda@Edge
Canwedobetter?
31
(yep)
![Page 32: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/32.jpg)
Travelex DevOps + Lambda@Edge
• AmazonCloudFront• AWSLambda@Edge• AWSShield• AWSWAF• AmazonS3• AmazonCertificateManager(ACM)• AWSCloudFormation
+aDevOpsengineer
Asimple,secureweb-site;theAWS way
32
![Page 33: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/33.jpg)
Travelex DevOps + Lambda@Edge
• Focustimeonbuildingandmaintainingtheweb-site;nottheinfrastructureunderit
• Slashtheeffortrequiredtosupporttheinfrastructure:makeitAmazon’sresponsibility!
Whyisthisbetter?
33
VMBuild S3+CloudFront
WebSite InfrastructureBuild SecurityHardening Maintenance
![Page 34: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/34.jpg)
Travelex DevOps + Lambda@Edge
• Runbeforepassingtheresponsebacktotheclient
• AddHTTPheaderstosecuretheresponse
• ProvisionusingCloudFormation(versionedandauditable)
• Note:contentsecuritypolicyandkeypinsareparameterised inthetemplate,sowecanuseitagain
Lambda@Edge
34Fullcodehere:https://github.com/travelex/lambda-edge-demo
![Page 35: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/35.jpg)
Travelex DevOps + Lambda@Edge
• Strict-Transport-Security:stopsSSLdowngradeandman-in-the-middle• Public-Key-Pinning:stopsSSL/TLSman-in-the-middle• Content-Security-Policy:limitsXSS(andaggravatesyourfront-endteam)• X-Frame-Options:blocksclick-jacking• X-Xss-Protection:blocksreflectiveXSS(sometimes)• X-Content-Type-Options:stopsclientssecond-guessingthetypeof
contentreturnedbytheserver• Referrer-Policy:stopstheclientfromleakingwebhistorytothird-parties• Expect-CT:ensuresthattheSSL/TLScertificatehasbeenobtained
legitimately(sortof)
SecureHTTPheaders,thedirtydetails
35
![Page 36: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/36.jpg)
Travelex DevOps + Lambda@Edge
Securityconsiderations🔒 Encryptionin-flightusingSSL/TLS🔒 Hostingenvironmenthardeningandsecuritycontrols🔒 Client-sidesecurity(e.g.XSS,click-jacking,CSRF,...)🔒 DoS andDDoS
(...anddon’tforgetcomplianceconsiderations)✅ Logsandaudittrail✅ Accesscontrol✅ +about300controlpoints,dependingonyourregimeofchoice
Let’sbuildasimple,secureweb-site
36See:https://observatory.mozilla.org/ andhttps://www.ssllabs.com/
![Page 37: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/37.jpg)
Travelex DevOps + Lambda@Edge
✅ CloudFormation =>auditablestateofallinfrastructurecomponents;includingfirewallsandaccesscontrols
✅ git =>robustaudittrailofwhochangedwhat,whenandwhy;canbereconciledwithchangemanagementprocesses
✅ CloudFormation+git flow =>auditablereleasemanagement✅ awspec +CI/CDlogs =>automated(!)testevidence✅ CloudTrail =>secureaudittrail✅ CloudFormation+IAM=>don’tletpeoplechangethings,onlycode✅ CloudFormation+Ansible* =>repeatablebuildsformultiplesites✅ (seealso:AWSArtifact)
Complianceusinginfrastructure-as-code
37*...forus,anyway
![Page 38: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/38.jpg)
Lambda@Edge: Getting Started
![Page 39: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/39.jpg)
Lambda@Edge Service Limits
Items Lambda@Edge LambdaTimeouts 50 ms 300 seconds
Function “Power Level” 128 MB 128 MB – 1.5 GB
Function DeploymentPackage Size
1MB 50MB
• Runtime: Node.js 4.3• Triggered by CloudFront Events• Access: No network connections, AWS Region access, disk
access, or VPC
![Page 40: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/40.jpg)
Lambda@Edge Pricing
Just as with Lambda today, Lambda@Edge is priced on two dimensions• $0.60 / million function executions • $0.00000625125 per second of execution duration (128 MB per function)
For example - 10 million executions, 50ms each time• Total charges = Compute charges (10M * 0.05sec * $0.00000625125 =
$3.13) + Request charges (10M * $0.6/M = $6.00) = $3.13 + $6.00 = $9.13 per month
![Page 41: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/41.jpg)
Recap – Using Lambda@Edge
Familiar programming model• Standard Node.js
Write once, run everywhere• Automatically deployed to the AWS network
of 77 edge locations• Requests are routed to the locations closest
to your end users across the world
Benefits:
Features:- Header centric use cases (add, drop or modify headers)- URL rewrites- Response generation
Bring your own code• Self service through the
Lambda console
![Page 42: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/42.jpg)
Stay Tuned!
Please visit the AWS Lambda website (https://aws.amazon.com/lambda/) for upcoming news about the general availability of Lambda@Edge on our “What’s New” page
![Page 43: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/43.jpg)
Thank you!
![Page 44: Accelerating Content with Amazon CloudFront and Lambda@Edgelondon-summit-slides-2017.s3.amazonaws.com/Accelerating Conten… · • Lambda@Edge is an extension of AWS Lambda that](https://reader034.vdocuments.us/reader034/viewer/2022042319/5f08d4e97e708231d423ef5b/html5/thumbnails/44.jpg)
Remember to complete your evaluations!