Q: What is it?
A: This solution provides a collection of Lambda@Edge applications, helping you easily use CloudFront.
Lambda@Edge is a feature of Amazon CloudFront that lets you run code closer to users of your application, which improves performance and reduces latency. With Lambda@Edge, you don't have to provision or manage infrastructure in multiple locations around the world. You pay only for the compute time you consume - there is no charge when your code is not running.
This solution provides commonly used Lambda@Edge functions for various scenarios, allowing you can directly deploy them in the console or use them as code samples.
A: Various CloudFront use cases, including：
- Authentication, e.g. authenticate with Amazon Cognito, add security headers into request headers.
- Validation, e.g. perform MD5 checksum and determine when return to the origin.
- URL Rewrite, e.g. rewrite URL according to the cookie information.
- URL Redirect, e.g. return related content according to the device type.
- Override Request, e.g. modify the response status code.
- Override Response, e.g. standardize the query.
- Origin Selection, e.g. forward request to the nearest CDN PoP according to the current geolocation.
- Personalize Content, e.g. resize images.
- Security, e.g. hotlinking protection.
Q: Who should use it?
A: Users who need to use CloudFront and need to expand its functions.
Q: What customer experience is like?
A: You can search through Amazon Web Services Serverless Application Repository (SAR) and find the desired Lambda@Edge applications generated through this solution, and directly deploy it into your account from SAR.
If you are not able to find Lambda@Edge that fits your use case, you can also refer to the GitHub source code in this solution to write your own Lambda@Edge code.
Q: How much does it cost?
A: The solution is free and you will be charged based on the actual usage of Amazon Web Services resources.
Q: How do I get started with it?
A: In the Amazon Web Services Serverless Application Repository (SAR), you can see find all the Lambda@Edge applications released by the solution via two steps: 1. Check box "Show apps that create custom IAM roles or resource policies". 2. Search keyword "aws-cloudfront-extensions".
In SAR, you can "1-click" deploy your desired Lambda@Edge application into your Amazon Web Services account. After the deployment, you can easily setup CloudFront to work with the deployed Lambda@Edge. Please see the deployment guide for more details.
Q: How much development effort needed to use it?
A: The Lambda@Edge can be used after being deployed without extra development effort. If the out-of-box Lambda@Edge functions in the solution do not meet your specific scenarios or business needs, you can rewrite or customize the Lambda@Edge code.
Q: Can I deploy the solution in any Amazon Web Services Region?
A: This solution currently only supports deployment in Amazon Web Services Global Regions. It does not support China Regions.
Training and Certification
Amazon Web Services Training and Certification builds your competence, confidence, and credibility through practical cloud skills that help you innovate and build your future. Learn more »
Getting into the Serverless Mindset
This course will orient you to key serverless concepts to help you plan serverless architectures and applications. You will learn how serverless computing and its event-driven orientation influence your approach to application development, parallelization of tasks, and environment management.
Architecting on Amazon Web Services
This course shows you the fundamentals of building IT infrastructure on the Amazon Web Services platform. You learn how to optimize the Amazon Web Services Cloud by understanding Amazon Web Services services and how they fit into cloud-based solutions.
Amazon Web Services Certified Advanced Networking – Specialty
This exam tests your technical expertise in designing and implementing Amazon Web Services and hybrid IT architectures at scale. This is for anyone who performs complex networking tasks.
The Amazon Web Services Partner Network (APN) is focused on helping partners build successful Amazon Web Services -based businesses to drive superb solutions and customer experiences. APN Partners are focused on customer success, helping you take full advantage of all the business benefits that Amazon Web Services has to offer. With their deep expertise on Amazon Web Services , APN Partners are uniquely positioned to help your company at any stage of your Cloud Adoption Journey and to help you solve some of your most complex problems.