CloudFront Extensions GitHub project offers an open source package consisting of a set of applications and solution templates that covers various user scenarios for using Amazon CloudFront, Lambda@Edge and CloudFront Functions.
Home Page | Usage | Monitoring | Config Snapshot | SSL Certificates | Extensions Repo | Workshop | Blog
The solution provides two kinds of monitoring: non-real time monitoring and real time monitoring. You can choose one of them to deploy. You can use the solution to view CloudFront traffic metrics via built-in dashboard or via API calls. It analysis CloudFront logs to get the metric data and you only need to modify MetricsCollector, MetricsHelper and MetricsManager to add new metrics.
A Snapshot is a CloudFront Distribution configuration. By saving a complex CloudFront Distribution configuration to a Snapshot, the configuration (snapshot) can be reused to current or other CloudFront Distributions in your AWS account.
You can use this solution to automatically create or import SSL Certificates and associate them to new CloudFront distributions. The solution provides two kinds of jobs: Create Certificates Job and Import Certificate Job. You can use them on web console or via API calls.
The solution provides a set of ready-to-use extensions (Lambda@Edge functions, CloudFront functions, CloudFormation templates) that could be useful when you use CloudFront. You can deploy them from the solution web console. After deployment, you can directly use it without programming or customize it when needed.
Time to deploy: Approximately 15 minutes.
Follow the step-by-step instructions in implementation guide to configure and deploy CloudFront Extensions into your account.
-
Make sure you have signed in AWS Console.
-
Click the following button to launch the CloudFormation Stack in your account.
Region Launch Button Global Region
Deploying CloudFront Extensions solution with the default parameters builds the following environment in the AWS Cloud.
- Amazon CloudFront distributes the solution frontend web UI assets hosted in Amazon S3 bucket.
- Amazon Cognito user pool provides authentication for backend.
- Amazon AppSync provides the backend GraphQL APIs.
- Amazon API Gateway provides the backend RESTful APIs for SSL certificates and Monitoring features.
- Amazon DynamoDB stores the solution related information as backend database.
- Amazon Lambda interacts with other Amazon Services to process core logic of monitoring, SSL certificates and extensions repository, and obtains information updated in DynamoDB tables.
- AWS Step Functions orchestrate workflows for creating ACM certificates, importing existed certificates and creating CloudFront distributions.
- Extensions are shown in Extensions repository. AWS CloudFormation and AWS Serverless Application Repository will be triggered if you want to deploy an extension into your AWS account.
- AWS Lambda stores CloudFront configuration changes into S3 bucket, and you can view the difference between two CloudFront configuration versions and apply the configuration.
- Amazon Athena queries CloudFront standard logs or real-time logs to get CloudFront metrics and output it by API Gateway. You can also view the metrics by monitoring dashboard.
See CONTRIBUTING for more information.
This project is licensed under the Apache-2.0 License.